Also pass SKEIN_USE_ASM to the assembler, via AFLAGS

This commit is contained in:
Ed Maste 2020-06-05 18:56:43 +00:00
parent 13776bf736
commit f2b8688664
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361845
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ CFLAGS+= -DRMD160_ASM
.if defined(XAS) || ${MK_BINUTILS_BOOTSTRAP} != "no"
AFLAGS += --strip-local-absolute
# Fully unroll all loops in the assembly optimized version
AFLAGS+= --defsym SKEIN_LOOP=0
AFLAGS+= --defsym SKEIN_LOOP=0 --defsym SKEIN_USE_ASM=1792
SRCS+= skein_block_asm.s
CFLAGS+= -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792
.else

View File

@ -34,7 +34,7 @@ SRCS += skein_block_asm.s
CFLAGS += -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792
ACFLAGS += -DELF -Wa,--noexecstack
# Fully unroll all loops in the assembly optimized version
AFLAGS+= --defsym SKEIN_LOOP=0
AFLAGS+= --defsym SKEIN_LOOP=0 --defsym SKEIN_USE_ASM=1792
.endif
SRCS += siphash.c
SRCS += gmac.c gfmult.c