|
|
@@ -162,6 +162,18 @@ namespace std {
|
|
|
__atomic_clear(&_flag, order);
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+ ALWAYS_INLINE float round(float arg) {
|
|
|
+ return ::roundf(arg);
|
|
|
+ }
|
|
|
+ ALWAYS_INLINE double round(double arg) {
|
|
|
+ return ::round(arg);
|
|
|
+ }
|
|
|
+ ALWAYS_INLINE long double round(long double arg) {
|
|
|
+ return ::roundl(arg);
|
|
|
+ }
|
|
|
+ using ::roundf;
|
|
|
+ using ::roundl;
|
|
|
};
|
|
|
#else
|
|
|
// Expect that we have access to the <atomic> header.
|