NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/44903: Error in x86/ieeefp.h
>Number: 44903
>Category: kern
>Synopsis: Error in x86/ieeefp.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 24 11:50:00 +0000 2011
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
I thinhk there is one error in ieeefp.h,
FP_RN=FE_TONEAREST is ---> 0x000
FP_RM=FE_DOWNWARD is ---> 0x400
FP_RP=FE_UPWARD is ---> 0x800
FP_RZ=FE_TOWARDZERO is ---> 0c000
normal is
FP_RN 0
FP_RM 1
FP_RD 2
FP_RZ 3 .
>How-To-Repeat:
>Fix:
--- sys/arch/x86/include/ieeefp.h 26 Mar 2011 19:52:20 -0000 1.4
+++ sys/arch/x86/include/ieeefp.h 24 Apr 2011 10:27:03 -0000
@@ -20,10 +20,10 @@
#define FP_X_IMP FE_INEXACT /* imprecise (loss of precision) */
typedef enum {
- 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_RN = 0, /* round to nearest representable num */
+ FP_RM, /* round toward negative infinity */
+ FP_RP, /* round toward positive infinity */
+ FP_RZ /* round to zero (truncate) */
} fp_rnd;
typedef enum {
Home |
Main Index |
Thread Index |
Old Index