summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-02-07 01:02:19 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-02-07 01:02:19 +0000
commit96efec99eb1a51831103cba044e2ef6d33c1bf68 (patch)
tree2b40c5359b95c8e93dcfe309582c828877e24dc6 /clang
parente0c7c274737bb7f6f236c2bfdd69efda1e87f108 (diff)
downloadbcm5719-llvm-96efec99eb1a51831103cba044e2ef6d33c1bf68.tar.gz
bcm5719-llvm-96efec99eb1a51831103cba044e2ef6d33c1bf68.zip
Add C11 FLT_TRUE_MIN and friends. <rdar://problem/10812837>.
llvm-svn: 149949
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Headers/float.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/lib/Headers/float.h b/clang/lib/Headers/float.h
index b7cb73ae59f..65b517d556f 100644
--- a/clang/lib/Headers/float.h
+++ b/clang/lib/Headers/float.h
@@ -64,6 +64,11 @@
# undef FLT_MIN
# undef DBL_MIN
# undef LDBL_MIN
+# if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__)
+# undef FLT_TRUE_MIN
+# undef DBL_TRUE_MIN
+# undef LDBL_TRUE_MIN
+# endif
#endif
/* Characteristics of floating point types, C99 5.2.4.2.2 */
@@ -110,4 +115,10 @@
#define DBL_MIN __DBL_MIN__
#define LDBL_MIN __LDBL_MIN__
+#if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__)
+# define FLT_TRUE_MIN __FLT_DENORM_MIN__
+# define DBL_TRUE_MIN __DBL_DENORM_MIN__
+# define LDBL_TRUE_MIN __LDBL_DENORM_MIN__
+#endif
+
#endif /* __FLOAT_H */
OpenPOWER on IntegriCloud