diff options
| author | Nikita Popov <[email protected]> | 2025-07-16 16:00:40 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-16 16:00:40 +0200 |
| commit | c7f0d216e6fc834b742456b39546c9835baa1277 (patch) | |
| tree | 1dcc9d02283a9e8dbc2a4636fe8db005e6d3892a /c | |
| parent | 34d293eb2aa75005406d8a7d78687896f714e89a (diff) | |
Mark blake3_hash_neon as static (#497)
* Mark blake3_hash_neon as static
This is an implementation detail, which should not be exported.
This avoids unnecessary symbol conflicts with vendored copies
of blake3.
* style: fix formatting of `blake3_hash4_neon`
---------
Co-authored-by: Henrik Gaßmann <[email protected]>
Diffstat (limited to 'c')
| -rw-r--r-- | c/blake3_neon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/c/blake3_neon.c b/c/blake3_neon.c index 53ce83c..794ea80 100644 --- a/c/blake3_neon.c +++ b/c/blake3_neon.c @@ -243,10 +243,11 @@ INLINE void load_counters4(uint64_t counter, bool increment_counter, counter_high(counter + (mask & 2)), counter_high(counter + (mask & 3))); } -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) { +static 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) { uint32x4_t h_vecs[8] = { set1_128(key[0]), set1_128(key[1]), set1_128(key[2]), set1_128(key[3]), set1_128(key[4]), set1_128(key[5]), set1_128(key[6]), set1_128(key[7]), |
