summaryrefslogtreecommitdiff
path: root/ffmpeg1/compat/tms470/math.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-08-26 15:10:18 +0100
committerTim Redfern <tim@eclectronics.org>2013-08-26 15:10:18 +0100
commit150c9823e71a161e97003849cf8b2f55b21520bd (patch)
tree3559c840cf403d1386708b2591d58f928c7b160d /ffmpeg1/compat/tms470/math.h
parentb4b1e2630c95d5e6014463f7608d59dc2322a3b8 (diff)
adding ffmpeg specific version
Diffstat (limited to 'ffmpeg1/compat/tms470/math.h')
-rw-r--r--ffmpeg1/compat/tms470/math.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ffmpeg1/compat/tms470/math.h b/ffmpeg1/compat/tms470/math.h
new file mode 100644
index 0000000..1104d74
--- /dev/null
+++ b/ffmpeg1/compat/tms470/math.h
@@ -0,0 +1,7 @@
+#include_next <math.h>
+
+#undef INFINITY
+#undef NAN
+
+#define INFINITY (*(const float*)((const unsigned []){ 0x7f800000 }))
+#define NAN (*(const float*)((const unsigned []){ 0x7fc00000 }))