git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libm - Add hacky INFINITY and NAN macros
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libm.so_src
/
include_exp
/
math.h
diff --git
a/Usermode/Libraries/libm.so_src/include_exp/math.h
b/Usermode/Libraries/libm.so_src/include_exp/math.h
index
d6d988f
..
a860012
100644
(file)
--- a/
Usermode/Libraries/libm.so_src/include_exp/math.h
+++ b/
Usermode/Libraries/libm.so_src/include_exp/math.h
@@
-12,6
+12,13
@@
extern "C" {
#endif
extern "C" {
#endif
+typedef float float_t;
+typedef double double_t;
+
+
+#define INFINITY (*(float*)((uint32_t[]){0x78000000}))
+#define NAN (*(float*)((uint32_t[]){0x78000001}))
+
extern double pow(double x, double y);
extern double exp(double x);
extern double log(double val);
extern double pow(double x, double y);
extern double exp(double x);
extern double log(double val);
UCC
git Repository :: git.ucc.asn.au