|
@@ -29,6 +29,7 @@
|
|
|
// name than everyone else. Sheesh.
|
|
// name than everyone else. Sheesh.
|
|
|
#ifdef _WIN32
|
|
#ifdef _WIN32
|
|
|
#include <float.h>
|
|
#include <float.h>
|
|
|
|
|
+#include <limits>
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
INLINE float csqrt(float v);
|
|
INLINE float csqrt(float v);
|
|
@@ -61,10 +62,14 @@ INLINE double cacos(double v);
|
|
|
INLINE double cmod(double x, double y);
|
|
INLINE double cmod(double x, double y);
|
|
|
INLINE double cpow(double x, double y);
|
|
INLINE double cpow(double x, double y);
|
|
|
|
|
|
|
|
-// Returns true if the number is nan, false if it's a genuine number
|
|
|
|
|
|
|
+// Returns true if the number is NaN, false if it's a genuine number
|
|
|
// or infinity.
|
|
// or infinity.
|
|
|
INLINE bool cnan(double v);
|
|
INLINE bool cnan(double v);
|
|
|
|
|
|
|
|
|
|
+// Returns NaN.
|
|
|
|
|
+INLINE float make_nan(float);
|
|
|
|
|
+INLINE double make_nan(double);
|
|
|
|
|
+
|
|
|
INLINE int cmod(int x, int y);
|
|
INLINE int cmod(int x, int y);
|
|
|
|
|
|
|
|
#include "cmath.I"
|
|
#include "cmath.I"
|