[cfe-commits] r149949 - /cfe/trunk/lib/Headers/float.h
Eli Friedman
eli.friedman at gmail.com
Mon Feb 6 17:02:19 PST 2012
Author: efriedma
Date: Mon Feb 6 19:02:19 2012
New Revision: 149949
URL: http://llvm.org/viewvc/llvm-project?rev=149949&view=rev
Log:
Add C11 FLT_TRUE_MIN and friends. <rdar://problem/10812837>.
Modified:
cfe/trunk/lib/Headers/float.h
Modified: cfe/trunk/lib/Headers/float.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/float.h?rev=149949&r1=149948&r2=149949&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/float.h (original)
+++ cfe/trunk/lib/Headers/float.h Mon Feb 6 19:02:19 2012
@@ -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 */
More information about the cfe-commits
mailing list