[Beowulf] Question about amd64 architecture and floating point operations

Ivan Paganini ispmarin at gmail.com
Wed Nov 22 06:01:54 EST 2006


Hello everybody at beowulf. Sorry about the _really_ newbie question, but
after doing some tests and researching a little, a question arose when
fooling around with amd64 (more precisely, an amd64 Athlon 4200 X2) and gcc
and sun studio 11. The architecture has 64 bits integer registers and 128
bits floating point registers, but my test programs in C just gave me the
same precision that I got with an old athlon 2400 xp (32bits), that is, long
double go only to 1x10^ 4961, even with the -m64 flag. I always imagined
that I would get the double precision without the long double declaration
(or, maybe, 40bits precision). What am I missing here? Is the compiler (gcc
4.1, sun studio express 11), the operating system (ubuntu 64bits edgy), or
just an error in my logic?

Thank you for the patience!

-- 
-----------------------------------------------------------
Ivan S. P. Marin
Laboratório de Física Computacional
lfc.ifsc.usp.br
Instituto de Física de São Carlos - USP
----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.clustermonkey.net/pipermail/beowulf/attachments/20061122/c53e4ce9/attachment-0001.html>
-------------- next part --------------
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf


More information about the Beowulf mailing list