Skip to content

Commit c6bb29b

Browse files
committed
build: Rename 64bit to x86_64
1 parent 0324645 commit c6bb29b

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ if(SECP256K1_ASM STREQUAL "arm32")
115115
message(FATAL_ERROR "ARM32 assembly optimization requested but not available.")
116116
endif()
117117
elseif(SECP256K1_ASM)
118-
include(Check64bitAssembly)
119-
check_64bit_assembly()
120-
if(HAS_64BIT_ASM)
118+
include(CheckX86_64Assembly)
119+
check_x86_64_assembly()
120+
if(HAVE_X86_64_ASM)
121121
set(SECP256K1_ASM "x86_64")
122122
add_compile_definitions(USE_ASM_X86_64=1)
123123
elseif(SECP256K1_ASM STREQUAL "AUTO")

build-aux/m4/bitcoin_secp.m4

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dnl escape "$0x" below using the m4 quadrigaph @S|@, and escape it again with a \ for the shell.
2-
AC_DEFUN([SECP_64BIT_ASM_CHECK],[
2+
AC_DEFUN([SECP_X86_64_ASM_CHECK],[
33
AC_MSG_CHECKING(for x86_64 assembly availability)
44
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
55
#include <stdint.h>]],[[
66
uint64_t a = 11, tmp;
77
__asm__ __volatile__("movq \@S|@0x100000000,%1; mulq %%rsi" : "+a"(a) : "S"(tmp) : "cc", "%rdx");
8-
]])],[has_64bit_asm=yes],[has_64bit_asm=no])
9-
AC_MSG_RESULT([$has_64bit_asm])
8+
]])], [has_x86_64_asm=yes], [has_x86_64_asm=no])
9+
AC_MSG_RESULT([$has_x86_64_asm])
1010
])
1111

1212
AC_DEFUN([SECP_ARM32_ASM_CHECK], [
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include(CheckCSourceCompiles)
22

3-
function(check_64bit_assembly)
3+
function(check_x86_64_assembly)
44
check_c_source_compiles("
55
#include <stdint.h>
66
@@ -9,6 +9,6 @@ function(check_64bit_assembly)
99
uint64_t a = 11, tmp;
1010
__asm__ __volatile__(\"movq $0x100000000,%1; mulq %%rsi\" : \"+a\"(a) : \"S\"(tmp) : \"cc\", \"%rdx\");
1111
}
12-
" HAS_64BIT_ASM)
13-
set(HAS_64BIT_ASM ${HAS_64BIT_ASM} PARENT_SCOPE)
12+
" HAVE_X86_64_ASM)
13+
set(HAVE_X86_64_ASM ${HAVE_X86_64_ASM} PARENT_SCOPE)
1414
endfunction()

configure.ac

+4-4
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ else
263263
fi
264264

265265
if test x"$req_asm" = x"auto"; then
266-
SECP_64BIT_ASM_CHECK
267-
if test x"$has_64bit_asm" = x"yes"; then
266+
SECP_X86_64_ASM_CHECK
267+
if test x"$has_x86_64_asm" = x"yes"; then
268268
set_asm=x86_64
269269
fi
270270
if test x"$set_asm" = x; then
@@ -274,8 +274,8 @@ else
274274
set_asm=$req_asm
275275
case $set_asm in
276276
x86_64)
277-
SECP_64BIT_ASM_CHECK
278-
if test x"$has_64bit_asm" != x"yes"; then
277+
SECP_X86_64_ASM_CHECK
278+
if test x"$has_x86_64_asm" != x"yes"; then
279279
AC_MSG_ERROR([x86_64 assembly optimization requested but not available])
280280
fi
281281
;;

0 commit comments

Comments
 (0)