From 175a86f4331ca977bccd9e87bcd7f228aa3abf61 Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Wed, 7 Feb 2024 11:05:01 +0100 Subject: [PATCH] Add missing static inline stanzas --- wyhash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wyhash.h b/wyhash.h index f066782..5e66d8b 100644 --- a/wyhash.h +++ b/wyhash.h @@ -200,7 +200,7 @@ static inline unsigned long long pow_mod(unsigned long long a, unsigned long lon } return r; } -unsigned sprp(unsigned long long n, unsigned long long a) { +static inline unsigned sprp(unsigned long long n, unsigned long long a) { unsigned long long d=n-1; unsigned char s=0; while (!(d & 0xff)) { d>>=8; s+=8; } @@ -217,7 +217,7 @@ unsigned sprp(unsigned long long n, unsigned long long a) { } return 0; } -unsigned is_prime(unsigned long long n) { +static inline unsigned is_prime(unsigned long long n) { if (n<2||!(n&1)) return 0; if (n<4) return 1; if (!sprp(n,2)) return 0;