Skip to content

Commit

Permalink
add -fwrapv to CFLAGS and remove default compilation of PQCgenKAT_kem
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorseiler committed Dec 7, 2020
1 parent f1352f7 commit f105e0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions avx2/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CC ?= /usr/bin/cc
CFLAGS += -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wredundant-decls \
-Wshadow -Wpointer-arith -mavx2 -mbmi2 -mpopcnt -maes \
-march=native -mtune=native -O3 -fomit-frame-pointer
-march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
NISTFLAGS += -Wno-unused-result -mavx2 -mbmi2 -mpopcnt -maes \
-march=native -mtune=native -O3
-march=native -mtune=native -O3 -fwrapv
RM = /bin/rm

SOURCES = kem.c indcpa.c polyvec.c poly.c fq.S shuffle.S ntt.S invntt.S \
Expand Down Expand Up @@ -42,8 +42,7 @@ all: \
test_vectors1024-90s \
test_speed512-90s \
test_speed768-90s \
test_speed1024-90s \
PQCgenKAT_kem
test_speed1024-90s

shared: \
libpqcrystals_kyber512_avx2.so \
Expand Down
7 changes: 3 additions & 4 deletions ref/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CC ?= /usr/bin/cc
CFLAGS += -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wredundant-decls \
-Wshadow -Wpointer-arith -O3 -fomit-frame-pointer
NISTFLAGS += -Wno-unused-result -O3
-Wshadow -Wpointer-arith -O3 -fomit-frame-pointer -fwrapv
NISTFLAGS += -Wno-unused-result -O3 -fwrapv
RM = /bin/rm

SOURCES = kem.c indcpa.c polyvec.c poly.c reduce.c ntt.c cbd.c verify.c
Expand Down Expand Up @@ -32,8 +32,7 @@ all: \
test_kex1024-90s \
test_vectors512-90s \
test_vectors768-90s \
test_vectors1024-90s \
PQCgenKAT_kem
test_vectors1024-90s

speed: \
test_speed512 \
Expand Down

0 comments on commit f105e0d

Please sign in to comment.