To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 2643
2642  |  2644
Subject: 
Re: 8-bit floating-point number representations?
Newsgroups: 
lugnet.off-topic.geek
Date: 
Thu, 4 Jan 2001 07:32:16 GMT
Viewed: 
133 times
  
In lugnet.off-topic.geek, Frank Filz writes:
After thinking about this, I realized most compact binary floating point
forms don't allow denormalized numbers. The reason is that if one
assures that all numbers are normalized, the bit to the left of the
decimal point is always a 1, and therefore need not be stored, thus
increasing the precision by 1 bit (which will be extremely significant
for an 8 bit float).

[...snip code...]

Wow, Frank, I didn't know you geeked like that!  All right!


I've probably made some misteaks but the above gives an idea of what
needs to be done at least.

It past my bedtime, so I'll have to think more about it another time, but
you've definitely given me hope that it could be done pretty efficiently.
As a bonus in this case, the numbers are always non-negative, so that would
mean one more bit for the mantissa.  I'm starting to wonder, though, whether
8-bit numbers would actually be faster in the long run than 64-bit double-
precision values -- because once the vector is in memory as a memory-mapped
file, the speed is no longer dependent on the size; with enough RAM, the
entire file would stick around in the filesystem cache, or it could even be
locked and held as a dedicated in-memory resource.

--Todd



Message has 1 Reply:
  Re: 8-bit floating-point number representations?
 
(...) I've been a pretty serious geek, especially with low level stuff like this. My first real job involved developing a Fortran style formatted I/O for the Apple II which involved digging into the the internal guts of Applesoft BASIC so that we (...) (24 years ago, 4-Jan-01, to lugnet.off-topic.geek)

Message is in Reply To:
  Re: 8-bit floating-point number representations?
 
(...) After thinking about this, I realized most compact binary floating point forms don't allow denormalized numbers. The reason is that if one assures that all numbers are normalized, the bit to the left of the decimal point is always a 1, and (...) (24 years ago, 4-Jan-01, to lugnet.off-topic.geek)

8 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR