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

index f933dc70101a31dea2f92ab28c5f1c2334300d3f..ea43c64627cfc46fad8e821647d611ef37064833 100644 (file)
@@ -264,6 +264,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 ]