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 4ff0c2e commit ab2d339Copy full SHA for ab2d339
2 files changed
include/webcc/compat/cmath
@@ -13,6 +13,8 @@
13
namespace std
14
{
15
using webcc::abs;
16
+ using webcc::isfinite;
17
+ using webcc::isnan;
18
using webcc::sqrt;
19
using webcc::sin;
20
using webcc::cos;
include/webcc/core/math.h
@@ -61,6 +61,26 @@ namespace webcc
61
return __builtin_nanf("");
62
}
63
64
+ inline bool isnan(float x)
65
+ {
66
+ return __builtin_isnan(x);
67
+ }
68
+
69
+ inline bool isnan(double x)
70
71
72
73
74
+ inline bool isfinite(float x)
75
76
+ return __builtin_isfinite(x);
77
78
79
+ inline bool isfinite(double x)
80
81
82
83
84
// --- Linear Algebra ---
85
struct Vec3
86
0 commit comments