mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 15:38:22 +00:00
math.h: long absolute
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
#ifndef _MATH_H_INCLUDE
|
#ifndef _MATH_H_INCLUDE
|
||||||
#define _MATH_H_INCLUDE
|
#define _MATH_H_INCLUDE
|
||||||
|
|
||||||
|
|
||||||
long intpow(long base, long exp);
|
long intpow(long base, long exp);
|
||||||
|
|
||||||
|
static inline long labs(long n){
|
||||||
|
return n < 0 ? -n : n;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user