diff --git a/src/include/math.h b/src/include/math.h index ce4db273..78cebe35 100644 --- a/src/include/math.h +++ b/src/include/math.h @@ -1,6 +1,11 @@ #ifndef _MATH_H_INCLUDE #define _MATH_H_INCLUDE + long intpow(long base, long exp); +static inline long labs(long n){ + return n < 0 ? -n : n; +} + #endif