diff --git a/src/builtins/radix.h b/src/builtins/radix.h index f83414c1..c400cef6 100644 --- a/src/builtins/radix.h +++ b/src/builtins/radix.h @@ -4,6 +4,10 @@ // These are leaky macros and assume counts are c0, c1,... // which must be adjacent in memory +#ifndef GRADE_UD + // Search functions need this: they always sort up + #define GRADE_UD(U,D) U +#endif #define RDX_PRE(K) s##K=c##K[j]+=s##K #define RDX_SUM_1(T) T s0=0; for(usz j=0;j<256;j++) { RDX_PRE(0); } #define RDX_SUM_2(T) GRADE_UD(c1[0]=0;,) T s0=0, s1=0; for(usz j=0;j<256;j++) { RDX_PRE(0); RDX_PRE(1); }