libmatheval.git -

summary refs log tree commit diff
path: root/lib/xmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmath.h')
-rw-r--r--lib/xmath.h 6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/xmath.h b/lib/xmath.h
index 921e442..4a54db1 100644
--- a/lib/xmath.h
+++ b/lib/xmath.h
@@ -48,6 +48,12 @@
#define MATH_NAN (0.0/0.0)
#endif
+#ifdef isnan
+#define MATH_ISNAN(x) isnan(x)
+#else
+#define MATH_ISNAN(x) ((x) != (x))
+#endif
+
/* Calculate cotangent of value x. */
double math_cot(double x);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月03日 05:38:07 +0000

AltStyle によって変換されたページ (->オリジナル) /