diff options
author | Logan Chien <loganchien@google.com> | 2017-08-31 21:48:38 +0800 |
---|---|---|
committer | Logan Chien <loganchien@google.com> | 2017-09-12 14:42:24 +0800 |
commit | 58a2d1907659e946c768f24b7b1d3dc705a86bb6 (patch) | |
tree | 0a03e1518de9f84f486003a4888f2b7561cd8019 | |
parent | 05c326f69fafc71cbe521291196515c076718d4c (diff) | |
download | scrypt-58a2d1907659e946c768f24b7b1d3dc705a86bb6.tar.gz |
Enable arm64 neon scrypt implementationoreo-mr1-dev
It seems that old Scrypt-config.mk is unaware of arm64 architecture.
In fact, crypto_scrypt-neon.c can be compiled into arm64 as well. This
CL adds an arch section for arm64.
Bug: 65425184
Test: adb shell /data/nativetest64/scrypt_test/scrypt_test
Change-Id: Ib451de642c7cc4548bfdc0879781981654b21b8f
Merged-In: If40a30378b8038324aad44071107130d7722e28d
-rw-r--r-- | scrypt.config | 8 | ||||
-rw-r--r-- | sources.bp | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/scrypt.config b/scrypt.config index 8099182..f00a3f6 100644 --- a/scrypt.config +++ b/scrypt.config @@ -65,6 +65,14 @@ SCRYPT_SOURCES_EXCLUDES_arm_neon="\ lib/crypto/crypto_scrypt-ref.c \ " +SCRYPT_SOURCES_arm64="\ +lib/crypto/crypto_scrypt-neon.c \ +" + +SCRYPT_SOURCES_EXCLUDES_arm64="\ +lib/crypto/crypto_scrypt-ref.c \ +" + SCRYPT_SOURCES_mips="\ " @@ -50,6 +50,14 @@ cc_defaults { ], }, }, + arm64: { + srcs: [ + "lib/crypto/crypto_scrypt-neon.c", + ], + exclude_srcs: [ + "lib/crypto/crypto_scrypt-ref.c", + ], + }, x86: { srcs: [ "lib/crypto/crypto_scrypt-sse.c", |