mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-28 05:26:04 +02:00
minor fixes for Xcode 14.2 warnings when building BLAKE3 with neon enabled
This commit is contained in:
parent
f22d66b307
commit
bab101ce8d
|
@ -89,6 +89,7 @@ static void cpuidex(uint32_t out[4], uint32_t id, uint32_t sid) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum cpu_feature {
|
enum cpu_feature {
|
||||||
|
NONE = 0,
|
||||||
SSE2 = 1 << 0,
|
SSE2 = 1 << 0,
|
||||||
SSSE3 = 1 << 1,
|
SSSE3 = 1 << 1,
|
||||||
SSE41 = 1 << 2,
|
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,
|
blake3_hash_many_neon(inputs, num_inputs, blocks, key, counter,
|
||||||
increment_counter, flags, flags_start, flags_end, out);
|
increment_counter, flags, flags_start, flags_end, out);
|
||||||
return;
|
return;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
blake3_hash_many_portable(inputs, num_inputs, blocks, key, counter,
|
blake3_hash_many_portable(inputs, num_inputs, blocks, key, counter,
|
||||||
increment_counter, flags, flags_start, flags_end,
|
increment_counter, flags, flags_start, flags_end,
|
||||||
out);
|
out);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// The dynamically detected SIMD degree of the current platform.
|
// The dynamically detected SIMD degree of the current platform.
|
||||||
|
|
|
@ -275,6 +275,10 @@ void blake3_hash_many_neon(const uint8_t *const *inputs, size_t num_inputs,
|
||||||
uint64_t counter, bool increment_counter,
|
uint64_t counter, bool increment_counter,
|
||||||
uint8_t flags, uint8_t flags_start,
|
uint8_t flags, uint8_t flags_start,
|
||||||
uint8_t flags_end, uint8_t *out);
|
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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue