From 284452010924f6a2d4fef2a3f6dea41ea7160182 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 24 Oct 2022 07:49:36 -0400 Subject: [PATCH] Need to define GRADE_UD for radix.h from selfsearch.c without Singeli --- src/builtins/radix.h | 4 ++++ 1 file changed, 4 insertions(+) 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); }