1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 07:35:38 +00:00

Wshadow at Dilithium/avx2

This commit is contained in:
Michael Baentsch 2020-03-27 07:24:29 +01:00 committed by Kris Kwiatkowski
parent 999b76cb90
commit 9248977595
6 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ HEADERS = alignment.h api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
-Wmissing-prototypes -Wredundant-decls -std=c99 \
-Wcast-align \
-Wcast-align -Werror=shadow\
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
all: $(LIB)

View File

@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
uint8_t t3[200];
uint64_t *ss = (uint64_t *)s;
for (size_t i = 0; i < 25; ++i) {
for (i = 0; i < 25; ++i) {
s[i] = _mm256_xor_si256(s[i], s[i]);
}

View File

@ -12,7 +12,7 @@ HEADERS = alignment.h api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
-Wmissing-prototypes -Wredundant-decls -std=c99 \
-Wcast-align \
-Wcast-align -Werror=shadow\
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
all: $(LIB)

View File

@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
uint8_t t3[200];
uint64_t *ss = (uint64_t *)s;
for (size_t i = 0; i < 25; ++i) {
for (i = 0; i < 25; ++i) {
s[i] = _mm256_xor_si256(s[i], s[i]);
}

View File

@ -12,7 +12,7 @@ HEADERS = alignment.h api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
-Wmissing-prototypes -Wredundant-decls -std=c99 \
-Wcast-align \
-Wcast-align -Werror=shadow\
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
all: $(LIB)

View File

@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
uint8_t t3[200];
uint64_t *ss = (uint64_t *)s;
for (size_t i = 0; i < 25; ++i) {
for (i = 0; i < 25; ++i) {
s[i] = _mm256_xor_si256(s[i], s[i]);
}