use ux instead of usz as the loop index in another place

This commit is contained in:
dzaima 2025-07-01 02:08:49 +03:00
parent 6617540333
commit ddb8d7c111

View File

@ -156,11 +156,11 @@ u8 const matchFnData[] = { // for the main diagonal, amount to shift length by;
#undef DEF_EQ_U1 #undef DEF_EQ_U1
#define DEF_EQ_I(NAME, S, T, INIT) \ #define DEF_EQ_I(NAME, S, T, INIT) \
bool F(NAME)(void* w, void* x, ux l, u64 d) { \ bool F(NAME)(void* w, void* x, ux l, u64 d) { \
assert(l>0); INIT \ assert(l>0); INIT \
S* wp = w; T* xp = x; \ S* wp = w; T* xp = x; \
for (usz i=0; i<l; i++) if (wp[i]!=xp[i]) return false; \ for (ux i=0; i<l; i++) if (wp[i]!=xp[i]) return false; \
return true; \ return true; \
} }
#define DEF_EQ(N,S,T) DEF_EQ_I(N,S,T, if (d!=0) { void* t=w; w=x; x=t; }) #define DEF_EQ(N,S,T) DEF_EQ_I(N,S,T, if (d!=0) { void* t=w; w=x; x=t; })
DEF_EQ_I(8_8, u8, u8, l<<=d;) DEF_EQ_I(8_8, u8, u8, l<<=d;)