mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-30 03:11:43 +00:00
19 lines
437 B
C
19 lines
437 B
C
|
#include "uint32_sort.h"
|
||
|
|
||
|
#include "int32_sort.h"
|
||
|
|
||
|
|
||
|
/* can save time by vectorizing xor loops */
|
||
|
/* can save time by integrating xor loops with int32_sort */
|
||
|
|
||
|
void PQCLEAN_MCELIECE8192128F_AVX_uint32_sort(uint32_t *x, size_t n) {
|
||
|
size_t j;
|
||
|
for (j = 0; j < n; ++j) {
|
||
|
x[j] ^= 0x80000000;
|
||
|
}
|
||
|
PQCLEAN_MCELIECE8192128F_AVX_int32_sort((int32_t *) x, n);
|
||
|
for (j = 0; j < n; ++j) {
|
||
|
x[j] ^= 0x80000000;
|
||
|
}
|
||
|
}
|