Module Name: src
Committed By: christos
Date: Sat Mar 26 19:52:20 UTC 2011
Modified Files:
src/sys/arch/x86/include: ieeefp.h
Log Message:
add fp{g,s}etprec
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/include/ieeefp.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/include/ieeefp.h
diff -u src/sys/arch/x86/include/ieeefp.h:1.3 src/sys/arch/x86/include/ieeefp.h:1.4
--- src/sys/arch/x86/include/ieeefp.h:1.3 Sat Jul 31 17:47:54 2010
+++ src/sys/arch/x86/include/ieeefp.h Sat Mar 26 15:52:20 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ieeefp.h,v 1.3 2010/07/31 21:47:54 joerg Exp $ */
+/* $NetBSD: ieeefp.h,v 1.4 2011/03/26 19:52:20 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@@ -20,10 +20,18 @@
#define FP_X_IMP FE_INEXACT /* imprecise (loss of precision) */
typedef enum {
- FP_RN=FE_TONEAREST, /* round to nearest representable number */
- FP_RM=FE_DOWNWARD, /* round toward negative infinity */
- FP_RP=FE_UPWARD, /* round toward positive infinity */
- FP_RZ=FE_TOWARDZERO /* round to zero (truncate) */
+ FP_RN=FE_TONEAREST, /* round to nearest representable num */
+ FP_RM=FE_DOWNWARD, /* round toward negative infinity */
+ FP_RP=FE_UPWARD, /* round toward positive infinity */
+ FP_RZ=FE_TOWARDZERO /* round to zero (truncate) */
} fp_rnd;
+typedef enum {
+ FP_PS = 0, /* 24 bit (single-precision) */
+ FP_PRS, /* reserved */
+ FP_PD, /* 53 bit (double-precision) */
+ FP_PE /* 64 bit (extended-precision) */
+} fp_prec;
+
+
#endif /* _X86_IEEEFP_H_ */