]> granicus.if.org Git - php/commitdiff
- add llabs
authorPierre Joye <pajoye@php.net>
Mon, 4 May 2009 17:09:33 +0000 (17:09 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 4 May 2009 17:09:33 +0000 (17:09 +0000)
win32/php_stdint.h

index 70909f0632238a6c58be9a6b4a0db763cad47b31..574f8e25f3febe199b1dd3fa98d6fd8ed1438d1d 100644 (file)
@@ -238,6 +238,8 @@ typedef uint64_t  uintmax_t;
 #define INTMAX_C   INT64_C
 #define UINTMAX_C  UINT64_C
 
+static inline int64_t llabs( int64_t i ) { return i >= 0? i: -i; }
+
 #endif // __STDC_CONSTANT_MACROS ]