From c7f0d216e6fc834b742456b39546c9835baa1277 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 16 Jul 2025 16:00:40 +0200 Subject: Mark blake3_hash_neon as static (#497) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- c/blake3_neon.c | 9 +++++---- 1 file 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]), -- cgit v1.2.3