Wshadow at Dilithium/avx2
This commit is contained in:
förälder
999b76cb90
incheckning
9248977595
@ -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 \
|
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
|
||||||
-Wmissing-prototypes -Wredundant-decls -std=c99 \
|
-Wmissing-prototypes -Wredundant-decls -std=c99 \
|
||||||
-Wcast-align \
|
-Wcast-align -Werror=shadow\
|
||||||
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
|
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
|
||||||
|
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
|
|||||||
uint8_t t3[200];
|
uint8_t t3[200];
|
||||||
uint64_t *ss = (uint64_t *)s;
|
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]);
|
s[i] = _mm256_xor_si256(s[i], s[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 \
|
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
|
||||||
-Wmissing-prototypes -Wredundant-decls -std=c99 \
|
-Wmissing-prototypes -Wredundant-decls -std=c99 \
|
||||||
-Wcast-align \
|
-Wcast-align -Werror=shadow\
|
||||||
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
|
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
|
||||||
|
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
|
|||||||
uint8_t t3[200];
|
uint8_t t3[200];
|
||||||
uint64_t *ss = (uint64_t *)s;
|
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]);
|
s[i] = _mm256_xor_si256(s[i], s[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 \
|
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror \
|
||||||
-Wmissing-prototypes -Wredundant-decls -std=c99 \
|
-Wmissing-prototypes -Wredundant-decls -std=c99 \
|
||||||
-Wcast-align \
|
-Wcast-align -Werror=shadow\
|
||||||
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
|
-mavx2 -mbmi -mpopcnt -I../../../common $(EXTRAFLAGS)
|
||||||
|
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
@ -43,7 +43,7 @@ static void keccak_absorb4x(__m256i *s,
|
|||||||
uint8_t t3[200];
|
uint8_t t3[200];
|
||||||
uint64_t *ss = (uint64_t *)s;
|
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]);
|
s[i] = _mm256_xor_si256(s[i], s[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laddar…
Referens i nytt ärende
Block a user