Adjust search table sparse initialization threshold for type it stores

This commit is contained in:
Marshall Lochbaum 2022-10-22 08:18:43 -04:00
parent e318830365
commit 5df198602c

View File

@ -20,7 +20,7 @@ extern B mul_c2(B,B,B);
void* ip = tyany_ptr(IN); \
void* fp = tyany_ptr(FOR); \
/* Initialize */ \
if (FOR##e==el_i16 && n<ft/64) \
if (FOR##e==el_i16 && n<ft/(64/sizeof(TY))) \
{ for (usz i=0; i<n; i++) tab[((i16*)fp)[i]]=INIT; } \
else { TY* to=tab-(ft/2-(ft==2)); for (i64 i=0; i<ft; i++) to[i]=INIT; } \
/* Set */ \