enable x86_64 assembly on x86_64 only (#42)

This commit is contained in:
Jacek Sieka 2022-12-05 14:54:12 +01:00 committed by GitHub
parent 72a9c4dd56
commit fd173fdff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@ const
{.passc: "-I" & quoteShell(srcPath).}
{.passc: "-DHAVE_CONFIG_H".}
when defined(gcc) or defined(clang):
{.passc: "-DHAVE_BUILTIN_EXPECT"}
when defined(amd64) and (defined(gcc) or defined(clang)):
{.passc: "-DUSE_ASM_X86_64"}
{.compile: srcPath & "/secp256k1.c".}
{.compile: srcPath & "/precomputed_ecmult.c".}

View File

@ -9,10 +9,10 @@
/* #undef COVERAGE */
/* Set ecmult gen precision bits */
#define ECMULT_GEN_PREC_BITS 4
/* #define ECMULT_GEN_PREC_BITS 4 */
/* Set window size for ecmult precomputation */
#define ECMULT_WINDOW_SIZE 15
/* #define ECMULT_WINDOW_SIZE 15 */
/* Define this symbol to enable the ECDH module */
#define ENABLE_MODULE_ECDH 1
@ -90,7 +90,7 @@
#define STDC_HEADERS 1
/* Define this symbol to enable x86_64 assembly optimizations */
#define USE_ASM_X86_64 1
/* #define USE_ASM_X86_64 1 */
/* Define this symbol if an external (non-inline) assembly implementation is
used */