iPhone检测处理器型号/ NEON支持 [英] iPhone detecting processor model / NEON support

查看:316
本文介绍了iPhone检测处理器型号/ NEON支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一种方式在配备了全新的ARM处理器(如iPhone 3GS和某些iPod 3G),并配有旧的ARM处理器的设备设备之间的运行时间来区分。
我知道我可以使用的uname()来确定设备型号,但只有一些iPod的触摸3G在他们的ARM处理器得到了提升,这是不够的。

I'm looking for a way to differentiate at runtime between devices equipped with the new ARM processor (such as iPhone 3GS and some iPods 3G) and devices equipped with the old ARM processors. I know I can use uname() to determine the device model, but as only some of the iPod touches 3G received a boost in their ARM processor, this isn't enough.

所以,我正在寻找的其中之一:

Therefore, I'm looking for one of these:


  1. 的检测处理器型号的一种方式 - 我想有没有

  2. 确定ARM NEON指令是否被支持的一种方式 - 从这个我可以得到一个答案

  3. 确定设备的一种方式总存储大小 - 与已知设备型号相结合,这可能导致hackishly我的答案

  4. < ENTER RANDOM IDEA>

在此先感谢:)

推荐答案

一个解决办法我能想到的,是如果检测的OpenGL ES 2.0是可用的,因为新的处理器启用。

One workaround I can think of, is detecting if OpenGL ES 2.0 is available, since the newer processors enable that.

有是在mobileorchard一个文章上如何做到这一点。

There's an article at mobileorchard on how to do it.

这篇关于iPhone检测处理器型号/ NEON支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆