mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
math.h: long absolute
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user