diff options
author | Ashok Bhat <ashok.bhat@arm.com> | 2014-07-02 14:04:25 +0100 |
---|---|---|
committer | Ashok Bhat <ashok.bhat@arm.com> | 2014-07-16 11:01:29 +0100 |
commit | 7a9fe36e2d395aee3d28261a0917faca96b12289 (patch) | |
tree | 488b7a784b028a981340734a3556886cec6ae161 /docs | |
parent | e4b362d6b023e419d595938154c6093d1c6f0d9b (diff) | |
download | ndk-7a9fe36e2d395aee3d28261a0917faca96b12289.tar.gz |
Support for ARM64 features
Queries and returns following features if supported
(x) FP - Support for Floating point instructions
(x) ASIMD - Support for Advanced SIMD instructions
(x) AES - Support for AES instructions
(x) PMULL - Support for 64-bit PMULL/PMULL2 instructions
(x) CRC32 - Support for CRC32 instructions
(x) SHA2 - Support for SHA2 instructions
(x) SHA1 - Support for SHA1 instructions
The features are determined based on the call to getauxval() in libc.
Change-Id: If8c2ab7f143d34ec9e8d0b6c2d3e149a41df39cc
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/text/CPU-FEATURES.text | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/text/CPU-FEATURES.text b/docs/text/CPU-FEATURES.text index 4ec6d20f7..c00d67fbd 100644 --- a/docs/text/CPU-FEATURES.text +++ b/docs/text/CPU-FEATURES.text @@ -146,6 +146,32 @@ And the following flags for the 32-bit x86 CPU Family: > Indicates that the device's CPU supports the MOVBE instruction. This one is specific to some Intel IA-32 CPUs, like the Atom. +And the following flags for the 64-bit ARM CPU Family: + + * `ANDROID_CPU_ARM64_FEATURE_FP` +> Indicates that the device's CPU has Floating Point (FP) unit. + All Android ARM64 devices are required to support this feature. + + * `ANDROID_CPU_ARM64_FEATURE_ASIMD` +> Indicates that the device's CPU has Advanced SIMD (ASIMD) unit. + All Android ARM64 devices are required to support this feature. + + * `ANDROID_CPU_ARM64_FEATURE_AES` +> Indicates that the device's CPU supports AES instructions. + + * `ANDROID_CPU_ARM64_FEATURE_CRC32` +> Indicates that the device's CPU supports CRC32 instructions. + + * `ANDROID_CPU_ARM64_FEATURE_SHA1` +> Indicates that the device's CPU supports SHA1 instructions. + + * `ANDROID_CPU_ARM64_FEATURE_SHA2` +> Indicates that the device's CPU supports SHA2 instructions. + + * `ANDROID_CPU_ARM64_FEATURE_PMULL` +> Indicates that the device's CPU supports 64-bit PMULL and PMULL2 + instructions. + Other CPU families do not have extensions listed at the moment, which means that android_getCpuFeatures() will return 0 for them. |