1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

add missing static statement to inline tools

This commit is contained in:
Un1q32
2025-09-15 08:11:35 -04:00
committed by GitHub
parent 200106bb46
commit ff89519340

View File

@@ -5,10 +5,10 @@
#include "globals.h"
inline int mod_abs (int a, int b) {
static inline int mod_abs (int a, int b) {
return ((a % b) + b) % b;
}
inline int div_floor (int a, int b) {
static inline int div_floor (int a, int b) {
return a % b < 0 ? (a - b) / b : a / b;
}