aboutsummaryrefslogtreecommitdiff
path: root/stdlib/siphash.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-03 14:19:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-03 14:19:23 -0400
commit8f346b48aa49ac0590c9c77edb75c63560398e1a (patch)
tree4aa6315dc6a43e0118b6cb12efbb6193bea351c0 /stdlib/siphash.c
parent35a19a2d1bb7605fa6ceb038b2b8afee760cd11c (diff)
Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
Diffstat (limited to 'stdlib/siphash.c')
-rw-r--r--stdlib/siphash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/siphash.c b/stdlib/siphash.c
index 671fbad6..a8e64c8e 100644
--- a/stdlib/siphash.c
+++ b/stdlib/siphash.c
@@ -46,7 +46,7 @@ public uint64_t TOMO_HASH_KEY[2] = {23, 42}; // Randomized in tomo_init()
#include "siphash-internals.h"
-public uint64_t siphash24(const uint8_t *src, size_t src_sz) {
+PUREFUNC public uint64_t siphash24(const uint8_t *src, size_t src_sz) {
siphash sh;
if ((uint64_t)src % __alignof__(uint64_t) == 0) {
#pragma GCC diagnostic ignored "-Wcast-align"