NetBSD Problem Report #44903

From www@NetBSD.org  Sun Apr 24 11:46:34 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0F2B863C3BD
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Apr 2011 11:46:34 +0000 (UTC)
Message-Id: <20110424114633.444F363C261@www.NetBSD.org>
Date: Sun, 24 Apr 2011 11:46:33 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: Error in x86/ieeefp.h
X-Send-Pr-Version: www-1.0

>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 {

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.