We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2a03c commit a8fb2e0Copy full SHA for a8fb2e0
GPU/Common/GPUCommonMath.h
@@ -99,7 +99,12 @@ class GPUCommonMath
99
GPUhdi() static float Remainderf(float x, float y);
100
GPUd() constexpr static bool Finite(float x);
101
GPUd() constexpr static bool IsNaN(float x);
102
+#pragma GCC diagnostic push
103
+#if defined(__FAST_MATH__) && defined(__clang__)
104
+#pragma GCC diagnostic ignored "-Wnan-infinity-disabled"
105
+#endif
106
GPUd() constexpr static float QuietNaN() { return GPUCA_CHOICE(std::numeric_limits<float>::quiet_NaN(), __builtin_nanf(""), nan(0u)); }
107
+#pragma GCC diagnostic pop
108
GPUd() constexpr static uint32_t Clz(uint32_t val);
109
GPUd() constexpr static uint32_t Popcount(uint32_t val);
110
0 commit comments