1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 15:39:07 +00:00
This commit is contained in:
John M. Schanck 2020-09-15 17:23:57 -04:00 committed by Kris Kwiatkowski
parent 82ae2d3e34
commit 6154c0d7d3
28 changed files with 112 additions and 56 deletions

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -12,7 +12,9 @@
#include "params.h" #include "params.h"
static inline uint8_t min(uint8_t x, uint8_t y) { static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x; if (x < y) {
return x;
}
return y; return y;
} }

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, size_t n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, long long n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, long long n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, long long n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, long long n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, long long n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {

View File

@ -463,7 +463,9 @@ static void int32_sort_2power(int32 *x, long long n, int flagdown) {
q = n >> 3; q = n >> 3;
flip = 0; flip = 0;
if (p << 1 == q) flip = 1; if (p << 1 == q) {
flip = 1;
}
flipflip = 1 - flip; flipflip = 1 - flip;
for (j = 0; j < q; j += p + p) { for (j = 0; j < q; j += p + p) {
for (k = j; k < j + p + p; k += p) { for (k = j; k < j + p + p; k += p) {