Changeset 2058
- Timestamp:
- Nov 2, 2012, 2:30:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/math/math.h
r2056 r2058 112 112 static inline int32_t abs(int32_t x) { return std::abs(x); } 113 113 static inline uint32_t abs(uint32_t x) { return x; } 114 #if defined __native_client__ 115 /* The pepper 19 toolchain doesn't provide abs() for long long int. */ 116 static inline int64_t abs(int64_t x) { return x > 0 ? x : -x; } 117 #else 114 118 static inline int64_t abs(int64_t x) { return std::abs(x); } 119 #endif 115 120 static inline uint64_t abs(uint64_t x) { return x; } 116 121 static inline float abs(float x) { return std::abs(x); }
Note: See TracChangeset
for help on using the changeset viewer.