Article View: comp.arch
Article #22818Re: CORRECTION to: heaps of numbers (tagged immediate floats)
From: Jeff Kenton
Date: Tue, 06 Mar 1990 02:48
Date: Tue, 06 Mar 1990 02:48
21 lines
1378 bytes
1378 bytes
From article <1990Mar6.015230.20068@Neon.Stanford.EDU>, by wilson@carcoar.Stanford.EDU (Paul Wilson):
>
> And if I've got it wrong somehow, please point it out. (As I see it, my
> real assumption is this: the upper 2 or 3 non-sign bits of an IEEE short
> are usually zero. If I've misunderstood FP representation or
> distributions, and this is not true, let me know.)
>
Unfortunately for your purposes, the exponent is "biased" by 127. This means
that the representation of exponents runs from 1 to 255 (smallest to largest).
All floats >= 2.0 have the high bit of the exponent set. Yet another gotcha.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
jeff kenton --- temporarily at jkenton@pinocchio.encore.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Technical Details
Message-ID:
<11313@encore.Encore.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!husc6!encore!pinocchio.encore.comReferences:
<1990Mar6.015230.20068@Neon.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!husc6!encore!pinocchio.encore.com From: jkenton@pinocchio.encore.com (Jeff Kenton) Newsgroups: comp.arch,comp.lang.lisp,comp.lang.misc,comp.lang.smalltalk Subject: Re: CORRECTION to: heaps of numbers (tagged immediate floats) Message-ID: <11313@encore.Encore.COM> Date: 6 Mar 90 02:48:40 GMT References: <1990Mar6.015230.20068@Neon.Stanford.EDU> Sender: news@Encore.COM Followup-To: comp.arch Lines: 21