-rw-r--r-- 337 djbsort-20190516/uint32/useint32/sort.c
#include "int32_sort.h" #include "uint32_sort.h" /* can save time by vectorizing xor loops */ /* can save time by integrating xor loops with int32_sort */ void uint32_sort(uint32_t *x,long long n) { long long j; for (j = 0;j < n;++j) x[j] ^= 0x80000000; int32_sort((int32_t *) x,n); for (j = 0;j < n;++j) x[j] ^= 0x80000000; }