[Core] Fix implicit simd typecast on arm architectures

This commit is contained in:
Nic Barker 2025-03-28 11:47:31 +13:00
parent 7c9506bc31
commit 6a7ce77024

4
clay.h
View File

@ -1430,11 +1430,11 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) {
length -= 8;
}
else {
for (int i = 0; i < length; i++) {
for (size_t i = 0; i < length; i++) {
overflowBuffer[i] = data[i];
}
uint8x8_t lower = vld1_u8(overflowBuffer);
msg = vcombine_u8(lower, vdup_n_u8(0));
msg = vreinterpretq_u64_u8(vcombine_u8(lower, vdup_n_u8(0)));
length = 0;
}
v0 = veorq_u64(v0, msg);