summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2016-06-13 17:07:02 +0800
committerYang Rong <rong.r.yang@intel.com>2016-06-13 17:07:02 +0800
commit1d2c630c00bc96b088d2ac443a214a17bd7f2607 (patch)
tree6132a0288dc4f59af54557c9cf949186b955e531
parentcfb8e5feb42407b4b7bac1cae3e0048783f668c3 (diff)
Changed ldexp to ldexpf when defining float min/max.
Signed-off-by: Andrew Lavin <aj.lavin@gmail.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
-rw-r--r--utests/builtin_exp.cpp2
-rw-r--r--utests/utest_generator.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/utests/builtin_exp.cpp b/utests/builtin_exp.cpp
index 1eaa187a..6d51c33f 100644
--- a/utests/builtin_exp.cpp
+++ b/utests/builtin_exp.cpp
@@ -5,7 +5,7 @@
#define udebug 0
#define FLT_MAX 0x1.fffffep127f
-#define FLT_MIN ldexp(1.0,-126)
+#define FLT_MIN ldexpf(1.0,-126)
#define FLT_ULP (1.0e-6f)
#define printf_c(...) \
diff --git a/utests/utest_generator.py b/utests/utest_generator.py
index 38d9ea0c..cde2dbee 100644
--- a/utests/utest_generator.py
+++ b/utests/utest_generator.py
@@ -4,8 +4,8 @@ import os,sys,re
FLT_MAX_POSI='0x1.fffffep127f'
FLT_MIN_NEGA='-0x1.fffffep127f'
-FLT_MIN_POSI='ldexp(1.0, -126)'
-FLT_MAX_NEGA='ldexp(-1.0, -126)'
+FLT_MIN_POSI='ldexpf(1.0, -126)'
+FLT_MAX_NEGA='ldexpf(-1.0, -126)'
paraTypeList={'float':'%e','int':'%d','double':'%lf','uint':'%d','string':'%s'}