mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-25 17:01:22 +00:00
fix clang-tidy complaint about falcon (#242)
See https://circleci.com/gh/PQClean/PQClean/7991
This commit is contained in:
parent
abe2a5aa2c
commit
298dd2cf22
@ -538,7 +538,7 @@ fpr_expm_p63(fpr x, fpr ccs) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
uint64_t z, y;
|
uint64_t z, y;
|
||||||
unsigned u;
|
size_t u;
|
||||||
uint32_t z0, z1, y0, y1;
|
uint32_t z0, z1, y0, y1;
|
||||||
uint64_t a, b;
|
uint64_t a, b;
|
||||||
|
|
||||||
|
@ -2275,8 +2275,8 @@ mkgauss(RNG_CONTEXT *rng, unsigned logn) {
|
|||||||
v = 0;
|
v = 0;
|
||||||
r = get_rng_u64(rng);
|
r = get_rng_u64(rng);
|
||||||
r &= ~((uint64_t)1 << 63);
|
r &= ~((uint64_t)1 << 63);
|
||||||
for (k = 1; k < (sizeof gauss_1024_12289)
|
for (k = 1; k < (uint32_t)((sizeof gauss_1024_12289)
|
||||||
/ (sizeof gauss_1024_12289[0]); k ++) {
|
/ (sizeof gauss_1024_12289[0])); k ++) {
|
||||||
uint32_t t;
|
uint32_t t;
|
||||||
|
|
||||||
t = (uint32_t)((r - gauss_1024_12289[k]) >> 63) ^ 1;
|
t = (uint32_t)((r - gauss_1024_12289[k]) >> 63) ^ 1;
|
||||||
|
@ -538,7 +538,7 @@ fpr_expm_p63(fpr x, fpr ccs) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
uint64_t z, y;
|
uint64_t z, y;
|
||||||
unsigned u;
|
size_t u;
|
||||||
uint32_t z0, z1, y0, y1;
|
uint32_t z0, z1, y0, y1;
|
||||||
uint64_t a, b;
|
uint64_t a, b;
|
||||||
|
|
||||||
|
@ -2275,8 +2275,8 @@ mkgauss(RNG_CONTEXT *rng, unsigned logn) {
|
|||||||
v = 0;
|
v = 0;
|
||||||
r = get_rng_u64(rng);
|
r = get_rng_u64(rng);
|
||||||
r &= ~((uint64_t)1 << 63);
|
r &= ~((uint64_t)1 << 63);
|
||||||
for (k = 1; k < (sizeof gauss_1024_12289)
|
for (k = 1; k < (uint32_t)((sizeof gauss_1024_12289)
|
||||||
/ (sizeof gauss_1024_12289[0]); k ++) {
|
/ (sizeof gauss_1024_12289[0])); k ++) {
|
||||||
uint32_t t;
|
uint32_t t;
|
||||||
|
|
||||||
t = (uint32_t)((r - gauss_1024_12289[k]) >> 63) ^ 1;
|
t = (uint32_t)((r - gauss_1024_12289[k]) >> 63) ^ 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user