From 61ae482e5d7dcf6a472a841645998f0e42b423bd Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 1 Mar 2023 00:05:26 -0500 Subject: [PATCH] fix linker error --- include/blt/math/math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/blt/math/math.h b/include/blt/math/math.h index 08e5d80..df6ae91 100644 --- a/include/blt/math/math.h +++ b/include/blt/math/math.h @@ -15,7 +15,7 @@ namespace blt { /** * fast number integer */ - unsigned int f_randi(unsigned int seed) { + static inline unsigned int f_randi(unsigned int seed) { seed = (seed << 13) ^ seed; return ((seed * (seed * seed * 15731 + 789221) + 1376312589) & 0x7fffffff); } @@ -23,7 +23,7 @@ namespace blt { /** * fast inverse sqrt */ - float fsqrt(float n){ + static inline float fsqrt(float n){ int i; float x, y; x = n * 0.5f;