[sdks] Bump Android NDK, build tools and platform tools versions
[mono-project.git] / mono / utils / mono-math-c.c
blob804665b4ceec367f34336d5190b95c41e393fa00
1 // This file bridges C++ to C runtime math functions
2 // without any chance of a C++ library dependency.
3 // In time it can probably be removed.
4 #include "config.h"
5 #include "glib.h"
6 #define MONO_MATH_DECLARE_ALL 1
7 #include "mono-math.h"
9 #if defined (__cplusplus) && !defined (_MSC_VER)
10 #error This file should be compiled as C.
11 #endif
13 int mono_isfinite_float (float a) { return isfinite (a); }
14 int mono_isfinite_double (double a) { return isfinite (a); }
15 int mono_isinf_float (float a) { return isinf (a); }
16 int mono_isinf_double (double a) { return isinf (a); }
17 int mono_isnan_float (float a) { return isnan (a); }
18 int mono_isnan_double (double a) { return isnan (a); }
19 int mono_isunordered_float (float a, float b) { return isunordered (a, b); }
20 int mono_isunordered_double (double a, double b) { return isunordered (a, b); }
21 int mono_signbit_float (float a) { return signbit (a); }
22 int mono_signbit_double (double a) { return signbit (a); }
23 float mono_trunc_float (float a) { return trunc (a); }
24 double mono_trunc_double (double a) { return trunc (a); }