LWN.net Logo

just use double?

just use double?

Posted Sep 14, 2006 1:39 UTC (Thu) by stevenj (subscriber, #421)
In reply to: What you should (and shouldn't) expect from 64-bit Linux (Linux.com) by zooko
Parent article: What you should (and shouldn't) expect from 64-bit Linux (Linux.com)

Um, for 48 bits per item you could just use 64-bit double precision, which is portable (now that everyone uses IEEE 754) and has 52 bits in its significand (i.e it can represent 52-bit integers exactly).


(Log in to post comments)

just use double?

Posted Sep 21, 2006 11:44 UTC (Thu) by renox (guest, #23785) [Link]

Integer<->float convertion can be quite expensive, so I'm not sure using double is that interesting.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.