login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
27
Re: math-emu issue with fp divide
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Kumar Gala <galak@...>
To: David Miller <davem@...>
Cc: <joseph@...>, <linux-kernel@...>, <libc-alpha@...>
Subject:
Re: math-emu issue with fp divide
Date: Friday, June 27, 2008 - 10:15 am
On Jun 12, 2008, at 11:24 PM, David Miller wrote:
quoted text
> From: Kumar Gala <galak@kernel.crashing.org> > Date: Thu, 5 Jun 2008 08:38:44 -0500 (CDT) > >> Now that I'm digging into this a bit I'm thinking my issue has to >> do with >> the fix you put in place from back in Aug 2007 (commit >> 405849610fd96b4f34cd1875c4c033228fea6c0f): >> >> [MATH-EMU]: Fix underflow exception reporting. >> >> 2) we ended up rounding back up to normal (this is the case where >> we set the exponent to 1 and set the fraction to zero), this >> should set inexact too >> ... >> >> Another example, "0x0.0000000000001p-1022 / 16.0", should signal >> both >> inexact and underflow. The cpu implementations and ieee1754 >> literature is very clear about this. This is case #2 above. >> >> I'm not clear from your commit comment on what actual number >> 0x0.0....01p-1022 is? > > I haven't been able to look closely at this yet but I think I > happened to stumble over the test case that lead me to that > changeset you are referencing here. > > The "actual number" is exactly as listed "0x0.0000000000001p-1022", > I don't know what's so confusing about it :-))) > > I think this was distilled by Jakub Jelinek from some glibc test case. > > #include <float.h> > #include <fenv.h> > #include <stdio.h> > > volatile double d = DBL_MIN; > volatile double e = 0x0.0000000000001p-1022; > volatile double f = 16.0; > int > main (void) > { > printf ("%x\n", fetestexcept (FE_UNDERFLOW)); > d /= f; > printf ("%x\n", fetestexcept (FE_UNDERFLOW)); > e /= f; > printf ("%x\n", fetestexcept (FE_UNDERFLOW)); > return 0; > }
I tested this on PPC HW fp and kern emu w/my patch and get the same results: 0 0 8000000 (8000000 is underflow in the PPC FP status register) - k --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
math-emu issue with fp divide
, Kumar Gala
, (Wed Jun 4, 4:38 pm)
Re: math-emu issue with fp divide
, Joseph S. Myers
, (Wed Jun 4, 5:42 pm)
Re: math-emu issue with fp divide
, David Miller
, (Wed Jun 4, 5:49 pm)
Re: math-emu issue with fp divide
, Kumar Gala
, (Thu Jun 5, 9:38 am)
Re: math-emu issue with fp divide
, David Miller
, (Fri Jun 13, 12:24 am)
Re: math-emu issue with fp divide
, Kumar Gala
, (Fri Jun 27, 10:15 am)
Re: math-emu issue with fp divide
, David Miller
, (Wed Oct 22, 1:15 am)
Re: math-emu issue with fp divide
, Kumar Gala
, (Fri Jun 27, 9:48 am)
Re: math-emu issue with fp divide
, David Miller
, (Fri Jun 27, 6:54 pm)
Re: math-emu issue with fp divide
, Kumar Gala
, (Fri Jun 13, 11:49 am)
Re: math-emu issue with fp divide
, David Miller
, (Wed Jun 4, 5:37 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michal Piotrowski
Re: [BUG] fs/xfs/xfs_bmap_btree.c:2312: error: 'b' undeclared (first use in this f...
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Paul Jackson
[PATCH 0/5 v2] x86 boot: various E820 & EFI related fixes - what changed in v2
git
:
openbsd-misc
:
linux-netdev
:
Paweł Staszewski
Re: rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: Data corruption issue with splice() on 2.6.27.10
Colocation donated by:
Who's online
There are currently
3 users
and
793 guests
online.
Online users
christopherneal
zeekec
dogbehavior
Syndicate