summaryrefslogtreecommitdiff
path: root/StdLib/Include/x86/float.h
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-27 21:42:16 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-27 21:42:16 +0000
commit2aa62f2bc9a9654687b377d9ca8a8c2c860a3852 (patch)
tree62a0991a44327154fb88bf95bd6f7522053db7bb /StdLib/Include/x86/float.h
parent98790d814871cc30bbd536673d3a0948047cd2f0 (diff)
downloadedk2-platforms-2aa62f2bc9a9654687b377d9ca8a8c2c860a3852.tar.xz
Standard Libraries for EDK II.
This set of three packages: AppPkg, StdLib, StdLibPrivateInternalFiles; contains the implementation of libraries based upon non-UEFI standards such as ISO/IEC-9899, the library portion of the C Language Standard, POSIX, etc. AppPkg contains applications that make use of the standard libraries defined in the StdLib Package. StdLib contains header (include) files and the implementations of the standard libraries. StdLibPrivateInternalFiles contains files for the exclusive use of the library implementations in StdLib. These files should never be directly referenced from applications or other code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11600 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/Include/x86/float.h')
-rw-r--r--StdLib/Include/x86/float.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/StdLib/Include/x86/float.h b/StdLib/Include/x86/float.h
new file mode 100644
index 0000000000..ee70bc88a4
--- /dev/null
+++ b/StdLib/Include/x86/float.h
@@ -0,0 +1,25 @@
+/* $NetBSD: float.h,v 1.5 2003/10/23 23:26:06 kleink Exp $ */
+
+#ifndef _X86_FLOAT_H_
+#define _X86_FLOAT_H_
+
+#if 0 /* Force all compilers to have the same limits */
+/* long double and double are the same in Microsoft compilers. */
+#if !defined(_MSC_VER) /* Non-Microsoft compiler specifics. */
+ #define LDBL_MANT_DIG 64
+ #define LDBL_EPSILON 1.0842021724855044340E-19L
+ #define LDBL_DIG 18
+ #define LDBL_MIN_EXP (-16381)
+ #define LDBL_MIN 3.3621031431120935063E-4932L
+ #define LDBL_MIN_10_EXP (-4931)
+ #define LDBL_MAX_EXP 16384
+ #define LDBL_MAX 1.1897314953572317650E+4932L
+ #define LDBL_MAX_10_EXP 4932
+
+ #define DECIMAL_DIG 21
+#endif // !defined(_MSC_VER)
+#endif // if 0
+
+#include <sys/float_ieee754.h>
+
+#endif /* _X86_FLOAT_H_ */