manual shcpy loop

This commit is contained in:
dzaima 2022-05-29 14:20:11 +03:00
parent 54645df2a9
commit 60a68c3c25

View File

@ -78,7 +78,8 @@ static void arr_shCopy(Arr* n, B o) { // copy shape & rank from o to n
}
}
static void shcpy(usz* dst, usz* src, size_t len) {
memcpy(dst, src, len*sizeof(usz));
// memcpy(dst, src, len*sizeof(usz));
NOUNROLL for (size_t i = 0; i < len; i++) dst[i] = src[i];
}
static usz arr_csz(B x) {