aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2011-10-03 18:18:49 +0200
committerChristophe Lyon <christophe.lyon@st.com>2011-10-03 18:18:49 +0200
commit836da4addcbdd1b6a2124e38fcd4013c0696770f (patch)
tree3bdfbbc8d9a73f64b984cd256e19adb7664ea31d
parentea4dee8229d8870874c136ce85183e0c9b55a69f (diff)
downloadplatform_external_arm-neon-tests-836da4addcbdd1b6a2124e38fcd4013c0696770f.tar.gz
platform_external_arm-neon-tests-836da4addcbdd1b6a2124e38fcd4013c0696770f.tar.bz2
platform_external_arm-neon-tests-836da4addcbdd1b6a2124e38fcd4013c0696770f.zip
Define NAN and HUGE_VALF to be compatible with MSVC.
-rw-r--r--stm-arm-neon-ref.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stm-arm-neon-ref.h b/stm-arm-neon-ref.h
index 07ebfd9..3a54283 100644
--- a/stm-arm-neon-ref.h
+++ b/stm-arm-neon-ref.h
@@ -34,6 +34,9 @@ THE SOFTWARE.
#include <stdio.h>
#if defined(_MSC_VER)
#include "msinttypes.h"
+#include <float.h> /* for isnan() ... */
+#define NAN 0x7fc00000L
+#define HUGE_VALF 0x7f800000L
#else
#include <inttypes.h>
#endif