1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-13 15:46:10 +02:00

minor fixes for Xcode 14.2 warnings when building BLAKE3 with neon enabled

This commit is contained in:
Sriranga Veeraraghavan 2023-09-11 09:50:55 -07:00
parent f22d66b307
commit bab101ce8d
No known key found for this signature in database
GPG Key ID: 7167BCAAAC4A8CBF
2 changed files with 7 additions and 2 deletions

View File

@ -89,6 +89,7 @@ static void cpuidex(uint32_t out[4], uint32_t id, uint32_t sid) {
#endif
enum cpu_feature {
NONE = 0,
SSE2 = 1 << 0,
SSSE3 = 1 << 1,
SSE41 = 1 << 2,
@ -265,11 +266,11 @@ void blake3_hash_many(const uint8_t *const *inputs, size_t num_inputs,
blake3_hash_many_neon(inputs, num_inputs, blocks, key, counter,
increment_counter, flags, flags_start, flags_end, out);
return;
#endif
#else
blake3_hash_many_portable(inputs, num_inputs, blocks, key, counter,
increment_counter, flags, flags_start, flags_end,
out);
#endif
}
// The dynamically detected SIMD degree of the current platform.

View File

@ -275,6 +275,10 @@ void blake3_hash_many_neon(const uint8_t *const *inputs, size_t num_inputs,
uint64_t counter, bool increment_counter,
uint8_t flags, uint8_t flags_start,
uint8_t flags_end, uint8_t *out);
void blake3_hash4_neon(const uint8_t *const *inputs, size_t blocks,
const uint32_t key[8], uint64_t counter,
bool increment_counter, uint8_t flags,
uint8_t flags_start, uint8_t flags_end, uint8_t *out);
#endif