finish PICK_IDX message

This commit is contained in:
dzaima 2023-05-22 00:18:59 +03:00
parent f0744f16d0
commit b093ebbc66

View File

@ -340,11 +340,11 @@ static NOINLINE void checkIndexList(B w, ur xr) {
} }
} }
// calculate index // calculate index into variable RES; reads xsh, defines i for GET
#define PICK_IDX(RES, GET, IA, OOB) \ #define PICK_IDX(RES, GET, RNK, OOB) \
usz RES = 0; \ usz RES = 0; \
for (usz i=0, ia_=(IA); i < ia_; i++) { \ for (usz i=0, rnk_=(RNK); i < rnk_; i++) { \
c = c*xsh[i] + WRAP(GET, xsh[i], OOB); \ c = c*xsh[i] + WRAP(GET, xsh[i], OOB); \
} }
static i64 pick_convFloat(f64 f) { static i64 pick_convFloat(f64 f) {