Skip to content

Commit 1754a7d

Browse files
authored
[Support][BLAKE3] Restore static on blake3_hash4_neon (#149046)
This was dropped in #147948 and causes symbol conflicts if libblake3 is also linked.
1 parent dd3d26b commit 1754a7d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Support/BLAKE3/blake3_neon.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,11 @@ INLINE void load_counters4(uint64_t counter, bool increment_counter,
245245
counter_high(counter + (mask & 2)), counter_high(counter + (mask & 3)));
246246
}
247247

248-
void blake3_hash4_neon(const uint8_t *const *inputs, size_t blocks,
249-
const uint32_t key[8], uint64_t counter,
250-
bool increment_counter, uint8_t flags,
251-
uint8_t flags_start, uint8_t flags_end, uint8_t *out) {
248+
static void blake3_hash4_neon(const uint8_t *const *inputs, size_t blocks,
249+
const uint32_t key[8], uint64_t counter,
250+
bool increment_counter, uint8_t flags,
251+
uint8_t flags_start, uint8_t flags_end,
252+
uint8_t *out) {
252253
uint32x4_t h_vecs[8] = {
253254
set1_128(key[0]), set1_128(key[1]), set1_128(key[2]), set1_128(key[3]),
254255
set1_128(key[4]), set1_128(key[5]), set1_128(key[6]), set1_128(key[7]),

0 commit comments

Comments
 (0)