Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How is double precision math calculated on 32 bit processors?

How is double precision math calculated on 32 bit processors?
Thread Tools
Mac Enthusiast
Join Date: Jun 2001
Location: Lancaster, CA
Status: Offline
Reply With Quote
Aug 8, 2003, 09:22 AM
 
The topic says it all...I was wondering if anyone knew of an article describing how one might go about performing double precision mathematical calculations using 32 bit processors. I was under the naive impression that double precision calculations required 64 bit processors.

Thanks,

Neo.cmg
     
Mac Enthusiast
Join Date: Jan 2002
Location: Trondhjem, Norway
Status: Offline
Reply With Quote
Aug 8, 2003, 02:44 PM
 
When speaking of 32-bit computers, that usually means the native address size of the computer, or the length of an integer/general purpose register. IOW, 32 bit integer and load/store units.

But all modern processors have separate floating point unit(s), which may well be 64 bits, even if the rest of the processor isn't. This goes for the 32 bit G4 and many other processors.
     
Mac Elite
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Reply With Quote
Aug 8, 2003, 04:08 PM
 
If i remember from back in my college days float are storred as a number and an exponent. a double precision float just has a more bits devoted to the exponent. I may be wrong its been quite a while.
     
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Aug 9, 2003, 01:43 AM
 
If i remember from back in my college days float are storred as a number and an exponent. a double precision float just has a more bits devoted to the exponent. I may be wrong its been quite a while
Well, given that increasing the exponent size wouldn't increase the available precision.....

Possessing a hardware FPU has nothing to do with it (although alien's comment is correct for most current processors). One could do quad precision FP arithmetic on an 8-bit CPU with no floating point hardware - it would just take a while. A register machine is equivalent to a Turing machine, and hence modern CPUs are all capable of performing the same operations. It's just that some software trickery might be necessary.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:12 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2