INNER CODE UNIT · C
stride
StrobeLabs/eth.zig · src/crypto/blst/src/bulk_addition.c:148
const size_t stride = SCRATCH_LIMIT / sizeof(ptype); \
ptype *scratch = alloca((npoints > stride ? stride : npoints) * \
sizeof(ptype)); \
const ptype##_affine *point = NULL; \
\
vec_zero(sum, sizeof(*sum)); \
while (npoints) { \
size_t i, j = npoints > stride ? stride : npoints; \
for (i=0; i<j; i++) { \
point = *points ? *points++ : point+1; \
vec_copy(&scratch[i], point, sizeof(*point)); \
} \
ptype##s_accumulate(sum, scratch, j); \
npoints -= j; \
} \
}
#ifndef SCRATCH_LIMIT