Perhaps it makes sense to use a shift so that it's clear that it's a power of two, and to increase it we just increase the shift by one.
Or maybe this should be a compile time variable?
|
#define MAX_SIZE 128 //Must be a power of 2 |
Potential fix
#define MAX_SIZE (1 << 7) // 128 - Must be a power of 2
Perhaps it makes sense to use a shift so that it's clear that it's a power of two, and to increase it we just increase the shift by one.
Or maybe this should be a compile time variable?
PIM-Embedding-Lookup/upmem/src/dpu/emb_dpu_lookup.c
Line 7 in 1830cfb
Potential fix