diff options
Diffstat (limited to '')
-rw-r--r-- | include/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 5669a3f..38e9c86 100644 --- a/include/common.h +++ b/include/common.h @@ -56,6 +56,12 @@ extern "C" int strcmp ( const char * str1, const char * str2 ); inline void *operator new(size_t size, void *ptr) { return ptr; }
+inline float abs(float value) {
+ return __fabs(value);
+}
+inline double abs(double value) {
+ return __fabs(value);
+}
struct tree_node {
|