Compare commits

..

1 Commits

Author SHA1 Message Date
Joram Vandemoortele
c248e35743
Merge af3d63ad0f into 08e4c5b198 2025-03-26 11:03:53 +00:00

8
clay.h
View File

@ -136,7 +136,7 @@ static inline void Clay__SuppressUnusedLatchDefinitionVariableWarning(void) { (v
for ( \
CLAY__ELEMENT_DEFINITION_LATCH = (Clay__OpenElement(), Clay__ConfigureOpenElement(CLAY__CONFIG_WRAPPER(Clay_ElementDeclaration, __VA_ARGS__)), 0); \
CLAY__ELEMENT_DEFINITION_LATCH < 1; \
CLAY__ELEMENT_DEFINITION_LATCH=1, Clay__CloseElement() \
++CLAY__ELEMENT_DEFINITION_LATCH, Clay__CloseElement() \
)
// These macros exist to allow the CLAY() macro to be called both with an inline struct definition, such as
@ -1376,7 +1376,7 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) {
length -= 16;
}
else {
for (size_t i = 0; i < length; i++) {
for (int i = 0; i < length; i++) {
overflowBuffer[i] = data[i];
}
msg = _mm_loadu_si128((const __m128i*)overflowBuffer);
@ -1433,11 +1433,11 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) {
length -= 8;
}
else {
for (size_t i = 0; i < length; i++) {
for (int i = 0; i < length; i++) {
overflowBuffer[i] = data[i];
}
uint8x8_t lower = vld1_u8(overflowBuffer);
msg = vreinterpretq_u64_u8(vcombine_u8(lower, vdup_n_u8(0)));
msg = vcombine_u8(lower, vdup_n_u8(0));
length = 0;
}
v0 = veorq_u64(v0, msg);