File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,10 @@ PHP_C_BIGENDIAN
342
342
dnl Check if we're targeting x86 / x86_64
343
343
PHP_CHECK_X86_TARGET
344
344
345
+ dnl Check if we're targeting ARM Neon CPUs
346
+ PHP_CHECK_ARM_NEON_SUPPORT
347
+
348
+
345
349
dnl Check if we're targeting Windows
346
350
PHP_CHECK_WINDOWS_TARGET
347
351
Original file line number Diff line number Diff line change 10
10
11
11
EXT_HASH_BLAKE3_SOURCES="hash_blake3.c blake3/upstream_blake3/c/blake3.c blake3/upstream_blake3/c/blake3_dispatch.c blake3/upstream_blake3/c/blake3_portable.c"
12
12
13
- dnl if test $ac_cv_target_arm_neon = yes; then
14
- dnl EXT_HASH_BLAKE3_SOURCES="$EXT_HASH_BLAKE3_SOURCES blake3/upstream_blake3/c/blake3_neon.c"
15
- dnl EXT_HASH_BLAKE3_HEADERS="$EXT_HASH_BLAKE3_HEADERS ext/hash/blake3/upstream_blake3/c/blake3_impl.h"
16
- dnl fi
17
- PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -DBLAKE3_USE_NEON=0"
18
-
13
+ if test $ac_cv_target_arm_neon = yes; then
14
+ EXT_HASH_BLAKE3_SOURCES="$EXT_HASH_BLAKE3_SOURCES blake3/upstream_blake3/c/blake3_neon.c"
15
+ EXT_HASH_BLAKE3_HEADERS="$EXT_HASH_BLAKE3_HEADERS ext/hash/blake3/upstream_blake3/c/blake3_impl.h"
16
+ else
17
+ PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -DBLAKE3_USE_NEON=0"
18
+ fi
19
19
20
20
if test $ac_cv_c_bigendian_php = yes; then
21
21
EXT_HASH_SHA3_SOURCES="hash_sha3.c"
You can’t perform that action at this time.
0 commit comments