diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index b82bab36..983c84a8 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -6156,9 +6156,9 @@ struct ggml_tensor * ggml_mul_multi_add( #include #include #include -inline int popcount(uint32_t x) { return __popcnt(x); } +static inline int popcount(uint32_t x) { return __popcnt(x); } #else -inline int popcount(uint32_t x) { return __builtin_popcount(x); } +static inline int popcount(uint32_t x) { return __builtin_popcount(x); } #endif struct ggml_tensor * ggml_hadamard(