Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-13 06:16:13 +0400
committerMans Rullgard <mans@mansr.com>2012-10-13 21:21:36 +0400
commitb6f8d635f27bd1234508679c93e04f60a36c2f1e (patch)
treed8c8d096cf0b6d56ee3b7c923703beeb406425cf /compat
parent5ab432fa3500c190184263b80c6ad04547770545 (diff)
build: tms470: work around glibc math.h problems
The glibc definitions of INFINITY and NAN do not work with the tms470 compiler, nor do our usual fallbacks. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/tms470/math.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/tms470/math.h b/compat/tms470/math.h
new file mode 100644
index 0000000000..1104d744e7
--- /dev/null
+++ b/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 }))