Skip to content

Commit e5cf4bf

Browse files
committed
build: Rename arm to arm32
1 parent 341cc19 commit e5cf4bf

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.cirrus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ task:
176176
CTIMETESTS: no
177177
matrix:
178178
- env: {}
179-
- env: {EXPERIMENTAL: yes, ASM: arm}
179+
- env: {EXPERIMENTAL: yes, ASM: arm32}
180180
<< : *MERGE_BASE
181181
test_script:
182182
- ./ci/cirrus.sh

CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ if(SECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY)
102102
endif()
103103
mark_as_advanced(FORCE SECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY)
104104

105-
set(SECP256K1_ASM "AUTO" CACHE STRING "Assembly optimizations to use: \"AUTO\", \"OFF\", \"x86_64\" or \"arm\" (experimental). [default=AUTO]")
106-
set_property(CACHE SECP256K1_ASM PROPERTY STRINGS "AUTO" "OFF" "x86_64" "arm")
105+
set(SECP256K1_ASM "AUTO" CACHE STRING "Assembly optimizations to use: \"AUTO\", \"OFF\", \"x86_64\" or \"arm32\" (experimental). [default=AUTO]")
106+
set_property(CACHE SECP256K1_ASM PROPERTY STRINGS "AUTO" "OFF" "x86_64" "arm32")
107107
check_string_option_value(SECP256K1_ASM)
108-
if(SECP256K1_ASM STREQUAL "arm")
108+
if(SECP256K1_ASM STREQUAL "arm32")
109109
enable_language(ASM)
110110
add_compile_definitions(USE_EXTERNAL_ASM=1)
111111
elseif(SECP256K1_ASM)
@@ -123,8 +123,8 @@ endif()
123123

124124
option(SECP256K1_EXPERIMENTAL "Allow experimental configuration options." OFF)
125125
if(NOT SECP256K1_EXPERIMENTAL)
126-
if(SECP256K1_ASM STREQUAL "arm")
127-
message(FATAL_ERROR "ARM assembly optimization is experimental. Use -DSECP256K1_EXPERIMENTAL=ON to allow.")
126+
if(SECP256K1_ASM STREQUAL "arm32")
127+
message(FATAL_ERROR "ARM32 assembly optimization is experimental. Use -DSECP256K1_EXPERIMENTAL=ON to allow.")
128128
endif()
129129
endif()
130130

configure.ac

+7-7
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ AC_ARG_ENABLE(external_default_callbacks,
197197
# * and auto (the default).
198198
AC_ARG_WITH([test-override-wide-multiply], [] ,[set_widemul=$withval], [set_widemul=auto])
199199

200-
AC_ARG_WITH([asm], [AS_HELP_STRING([--with-asm=x86_64|arm|no|auto],
201-
[assembly optimizations to use (experimental: arm) [default=auto]])],[req_asm=$withval], [req_asm=auto])
200+
AC_ARG_WITH([asm], [AS_HELP_STRING([--with-asm=x86_64|arm32|no|auto],
201+
[assembly optimizations to use (experimental: arm32) [default=auto]])],[req_asm=$withval], [req_asm=auto])
202202

203203
AC_ARG_WITH([ecmult-window], [AS_HELP_STRING([--with-ecmult-window=SIZE|auto],
204204
[window size for ecmult precomputation for verification, specified as integer in range [2..24].]
@@ -279,7 +279,7 @@ else
279279
AC_MSG_ERROR([x86_64 assembly optimization requested but not available])
280280
fi
281281
;;
282-
arm)
282+
arm32)
283283
;;
284284
no)
285285
;;
@@ -296,7 +296,7 @@ case $set_asm in
296296
x86_64)
297297
SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DUSE_ASM_X86_64=1"
298298
;;
299-
arm)
299+
arm32)
300300
enable_external_asm=yes
301301
;;
302302
no)
@@ -413,8 +413,8 @@ if test x"$enable_experimental" = x"yes"; then
413413
AC_MSG_NOTICE([Experimental features do not have stable APIs or properties, and may not be safe for production use.])
414414
AC_MSG_NOTICE([******])
415415
else
416-
if test x"$set_asm" = x"arm"; then
417-
AC_MSG_ERROR([ARM assembly optimization is experimental. Use --enable-experimental to allow.])
416+
if test x"$set_asm" = x"arm32"; then
417+
AC_MSG_ERROR([ARM32 assembly optimization is experimental. Use --enable-experimental to allow.])
418418
fi
419419
fi
420420

@@ -436,7 +436,7 @@ AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"ye
436436
AM_CONDITIONAL([ENABLE_MODULE_EXTRAKEYS], [test x"$enable_module_extrakeys" = x"yes"])
437437
AM_CONDITIONAL([ENABLE_MODULE_SCHNORRSIG], [test x"$enable_module_schnorrsig" = x"yes"])
438438
AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$enable_external_asm" = x"yes"])
439-
AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm"])
439+
AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm32"])
440440
AM_CONDITIONAL([BUILD_WINDOWS], [test "$build_windows" = "yes"])
441441
AC_SUBST(LIB_VERSION_CURRENT, _LIB_VERSION_CURRENT)
442442
AC_SUBST(LIB_VERSION_REVISION, _LIB_VERSION_REVISION)

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ add_library(secp256k1_precomputed OBJECT EXCLUDE_FROM_ALL
1111
add_library(secp256k1 secp256k1.c $<TARGET_OBJECTS:secp256k1_precomputed>)
1212

1313
add_library(secp256k1_asm INTERFACE)
14-
if(SECP256K1_ASM STREQUAL "arm")
14+
if(SECP256K1_ASM STREQUAL "arm32")
1515
add_library(secp256k1_asm_arm OBJECT EXCLUDE_FROM_ALL)
1616
target_sources(secp256k1_asm_arm PUBLIC
1717
asm/field_10x26_arm.s

0 commit comments

Comments
 (0)