- 浏览: 559420 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (338)
- 已过时文章(留念用) (39)
- Android学习笔记 (30)
- Android开发指引自译 (100)
- Android NDK文档自译 (23)
- Android设计指引自译 (2)
- xp(ペケピー)&linux(理奈、铃)酱~ (4)
- ui酱&歌词自译~ (9)
- lua酱~ (9)
- 自我反省 (1)
- 羽game计划 (1)
- XSL酱 (2)
- java酱 (3)
- 设计的领悟 (58)
- 涂鸦作品(pixiv) (1)
- ruby酱 (2)
- Objective-C编程语言自译 (2)
- Android开发月报 (6)
- objc酱 (2)
- photoshop (3)
- js酱 (6)
- cpp酱 (8)
- antlr酱 (7)
- Lua 5.1参考手册自译 (11)
- 收藏品 (3)
- 待宵草计划 (4)
- 体验版截图 (1)
最新评论
-
naruto60:
太给力了!!!!我这网打不开Intel官网,多亏楼主贴了连接, ...
使用HAXM加速的Android x86模拟器(和一些问题) -
yangyile2011:
谢谢博主,翻译得很好哦
【翻译】(4)片段 -
ggwang:
牙痛的彼岸:痹!
牙痛的彼岸 -
ggwang:
总结得很简练清晰啊,学习了!
ANTLR学习笔记一:概念理解 -
leisurelife1990:
mk sdd
用git下载Android自带app的源代码
-----------------
英文文档见android-ndk-r5b的documentation.html
属于Android Native Development Kit (NDK)的一部分
见http://developer.android.com/sdk/ndk/(需要代理)
翻译仅个人见解
-----------------
Android NDK CPU Features detection library:
Android NDK CPU特性检测库:
-------------------------------------------
This NDK provides a small library named "cpufeatures" that can be used at runtime to detect the target device's CPU family and the optional features it supports.
NDK提供一个名为cpufeatures的小型库,它可以用于在运行期检测目标设备的CPU家族和它支持的可选特性。
Usage:
用法:
------
The library is available as an import module. To use it, you must:
这个库作为导入模块可用。要使用它,你必须:
To use it, you must:
要使用它,你必须:
* List 'cpufeatures' in your list of static library dependencies, as in:
* 在你的静态库依赖列表中列出cpufeatures,正如这样:
LOCAL_STATIC_LIBRARIES := cpufeatures
* At the end of your Android.mk, import the 'android/cpufeatures' module, as in:
* 在你的Android.mk结束处,导入android/cpufeatures模块,正如这样:
$(call import-module,android/cpufeatures)
* In your source code, include the header named <cpu-features.h>
* 在你的源代码中,包含名为<cpu-features.h>的头文件
Here is a simple example:
这里是一个简单示例:
<project-path>/jni/Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := <your-module-name>
LOCAL_SRC_FILES := <your-source-files>
LOCAL_STATIC_LIBRARIES := cpufeatures
include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/cpufeatures)
Features:
特性:
---------
Two functions are provided for now:
现在提供两个函数:
AndroidCpuFamily android_getCpuFamily();
Returns the target device's CPU Family as an enum. For now, the only supported family is ANDROID_CPU_FAMILY_ARM.
用一个枚举值返回目标设备的CPU家族。现在,唯一支持的家族是ANDROID_CPU_FAMILY_ARM。
uint64_t android_getCpuFeatures();
Returns the set of optional features supported by the device's CPU. The result is a set of bit-flags, each corresponding to one CPU Family-specific optional feature.
返回设备CPU支持的可选特性。结构是一个位标志集合,每个位标志对应一项CPU家族特定的可选特性。
Currently, only the following flags are defined, for the ARM CPU Family:
目前,只为ARM CPU家族定义了如下标志:
ANDROID_CPU_ARM_FEATURE_ARMv7
Indicates that the device's CPU supports the ARMv7-A instruction set as supported by the "armeabi-v7a" abi (see CPU-ARCH-ABIS.html). This corresponds to Thumb-2 and VFPv3-D16 instructions.
ANDROID_CPU_ARM_FEATURE_ARMv7
指出设备的CPU支持ARMv7-A指令集,它由armeabi-v7a的ABI(注:应用程序二进制接口,操作系统暴露的接口,使二进制程序不需要重新编译即可在兼容ABI的操作系统上运行)支持(参考CPU-ARCH-ABIS.html)。它对应Thumb-2和VFPv3-D16指令。
ANDROID_CPU_ARM_FEATURE_VFPv3
Indicates that the device's CPU supports the VFPv3 hardware FPU instruction set extension. Due to the definition of 'armeabi-v7a', this will always be the case if ANDROID_CPU_ARM_FEATURE_ARMv7 is returned.
ANDROID_CPU_ARM_FEATURE_VFPv3
指出设备CPU支持VFPv3硬件FPU(注:FPU是浮点运算单元的缩写)指令集扩展。由于armeabi-v7a的定义,它将总是返回ANDROID_CPU_ARM_FEATURE_ARMv7(注:这里的意思可能是,它总是和ANDROID_CPU_ARM_FEATURE_ARMv7一起返回)。
Note that this corresponds to the minimum profile VFPv3-D16 that _only_ provides 16 hardware FP registers.
注意它对应最小型号是VFPv3-D16,它只提供16个硬件浮点寄存器。
ANDROID_CPU_ARM_FEATURE_NEON
Indicates that the device's CPU supports the ARM Advanced SIMD (a.k.a. NEON) vector instruction set extension. Note that ARM mandates that such CPUs also implement VFPv3-D32, which provides 32 hardware FP registers (shared with the NEON unit).
ANDROID_CPU_ARM_FEATURE_NEON
指出设备CPU支持ARM高级SIMD(即NEON)(注:NEON技术是ARM SIMD扩展指令,用于多媒体处理的硬件加速)向量指令集扩展。注意ARM授权这种CPU还实现了VFPv3-D32,提供32个硬件浮点寄存器(与NEON单元共享)。
Important Note:
重要注意事项:
---------------
The cpufeatures library will be updated to support more CPU families and optional features in the future. It is designed to work as-is on all official Android platform versions.
cpufeatures库将被更新以支持未来更多CPU家族和可选特性。它被设计为在所有官方Android平台版本上保持原样地工作。
Change History:
修改历史:
---------------
Please see the comments in $NDK/sources/android/cpufeatures/cpu-features.c for the complete change history for this library.
请参考$NDK/sources/android/cpufeatures/cpu-features.c中的注释以获得这个库的完整修改历史。(注:估计写文档的人太懒...)
发表评论
-
【翻译】(25)ANDROID ATOMICS OPERATIONS
2012-02-21 10:22 1712----------------- 英文 ... -
【翻译】(21)Licenses
2011-11-13 21:11 919----------------- 英文文档见android ... -
【翻译】(19)Bionic Changes
2011-11-13 21:08 2472----------------- 英文文档见android ... -
【翻译】(16)Bionic Overview
2011-09-09 23:27 2227----------------- 英文文档见android ... -
【翻译】(17)SYSV IPC
2011-09-09 08:15 1574----------------- 英文文档见android ... -
【翻译】(20)System Issues
2011-09-08 18:22 1063----------------- 英文文档见andr ... -
【翻译】(24)Native Activity
2011-09-08 08:53 1495----------------- 英文文档见android ... -
【翻译】(23)NDK Stack
2011-09-07 16:45 2507----------------- 英文文档见android ... -
【翻译】(22)CPU X86
2011-09-07 15:52 1052----------------- 英文文档见android ... -
【翻译】(15)Standalone Toolchain
2011-04-26 17:05 1530----------------- 英文文档 ... -
【翻译】(14)Stable APIs
2011-04-26 17:04 1518----------------- 英文文档见android ... -
【翻译】(13)Prebuilts
2011-04-26 17:03 1150----------------- 英文文档见android ... -
【翻译】(12)NDK GDB
2011-04-26 17:00 1426----------------- 英文文档 ... -
【翻译】(11)NDK Build
2011-04-26 16:58 1547----------------- 英文文档 ... -
【翻译】(10)Import Module
2011-04-26 16:54 1466----------------- 英文文档见android ... -
【翻译】(8)CPU ARM Neon
2011-04-26 16:50 1514----------------- 英文文档见android ... -
【翻译】(7)CPU Arch ABIs
2011-04-26 16:48 1220----------------- 英文文档见android ... -
【翻译】(6)Application.mk File
2011-04-26 16:46 1393----------------- 英文文档 ... -
【翻译】(5)Android.mk File
2011-04-26 16:45 1278----------------- 英文文档见android ... -
【翻译】(4)How To
2011-04-26 16:43 956----------------- 英文文档见android ...
相关推荐
cpu_features:一个跨平台的gnu89库在运行时获得cpu特性
cpu_features 跨平台的C库,用于在运行时检索CPU功能(例如可用指令)。目录设计原理易于使用。 有关示例,请参见下面的代码片段。 可扩展。 易于添加缺少的功能或体系结构。 与旧的编译器兼容并在许多体系结构上...
关于J2EE的翻译,文章名:Overview of J2EE Features and Service
Aggregate Channel Features for Multi-view Face Detection英文原文加翻译 断断续续翻译了将近一周。。翻译的不好不要打我QAQ
lowe04年关于SIFT的论文IJCV2004 Distinctive image features from scale invariant keypoints的翻译,完全自己翻着金山词霸翻译的。
features
power 9 系列小机介绍 IBM Power Systems™ servers using IBM POWER8® processors are described in a separate Facts and Features report dated February 2018 (POB03046-USEN).
Learning Deep Features for Discriminative Localization论文原文加翻译
The int return value is a bitmask of flags for major processor features. The bits that might be set are: •#define _CPU_FEATURE_MMX 0x0001 •#define _CPU_FEATURE_SSE 0x0002 •#define _CPU_...
surf算法的翻译,非常详细。对于理解surf有很大的帮助哦
The CTP contains a number of walkthroughs, some of which highlight the new language features of C# 4.0. Those are excellent for getting a hands-on guided tour through the details of some common ...
cpu_features 跨平台的C库,用于在运行时检索CPU功能(例如可用指令)。目录设计原理易于使用。 有关示例,请参见下面的代码片段。 可扩展易于添加缺少的功能或体系结构。 与旧的编译器兼容,并且在许多体系结构上...
features.h 标准c/c++头文件下载
藏经阁-JDK9 New Features.pdf
This is done to abstract us the various ARM Architecture quirks and alphabet soup.
Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions Work with essential and advanced features of the Java programming language such as Java modules development, lambda ...
Java Language Features, 2nd Edition,介绍了注解,内部类、IO、持久化等java特性。比较适合深入研究的人员。
小型delphi单元可获取现代CPU的功能。
VirtualBox 错误:This kernel requires the following features not present on the CPU 使用VirtualBox安装虚拟机系统时候经常会遇到以下错误 This kernel requires the following features not present on the ...
An Extended Set of Haar-like Features for Rapid Object Detection.pdf和Rapid Object Detection using a Boosted Cascade of Simple.pdf 都是了解Haar特征最经典的文献。