]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/x86/float.h
StdLib: Fix some build problems and obscure bugs.
[mirror_edk2.git] / StdLib / Include / x86 / float.h
index 72ed758718cde9916e7a49d76d76e606a8b3fd31..5086dfadcb5636ff7f7ac5a65ff29b62771c40f6 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-    Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+    Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
     This program and the accompanying materials are licensed and made available under\r
     the terms and conditions of the BSD License that accompanies this distribution.\r
     The full text of the license may be found at\r
 #ifndef _X86_FLOAT_H_\r
 #define _X86_FLOAT_H_\r
 \r
-#if 0   /* Force all compilers to have the same limits */\r
-/* long double and double are the same in Microsoft compilers. */\r
+/* long double and double are the same in Microsoft compilers.\r
+    In GCC long double is fully supported.\r
+*/\r
 #if !defined(_MSC_VER)        /* Non-Microsoft compiler specifics. */\r
-  #define LDBL_MANT_DIG 64\r
-  #define LDBL_EPSILON  1.0842021724855044340E-19L\r
-  #define LDBL_DIG  18\r
-  #define LDBL_MIN_EXP  (-16381)\r
-  #define LDBL_MIN  3.3621031431120935063E-4932L\r
+  #define LDBL_MANT_DIG   64\r
+  #define LDBL_EPSILON    1.0842021724855044340E-19L\r
+  #define LDBL_DIG        18\r
+  #define LDBL_MIN_EXP    (-16381)\r
+  #define LDBL_MIN        3.3621031431120935063E-4932L\r
   #define LDBL_MIN_10_EXP (-4931)\r
-  #define LDBL_MAX_EXP  16384\r
-  #define LDBL_MAX  1.1897314953572317650E+4932L\r
+  #define LDBL_MAX_EXP    16384\r
+  #define LDBL_MAX        1.1897314953572317650E+4932L\r
   #define LDBL_MAX_10_EXP 4932\r
 \r
-  #define DECIMAL_DIG 21\r
+  #define DECIMAL_DIG     21\r
 #endif  // !defined(_MSC_VER)\r
-#endif  // if 0\r
 \r
 #include <sys/float_ieee754.h>\r
 \r