enable x86_64 assembly on x86_64 only (#42)
This commit is contained in:
parent
72a9c4dd56
commit
fd173fdff8
@ -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".}
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user