Παρασκευή, 9 Μαρτίου 2012
how many bits are on long double (on Intel Macs?) and other calculating stories
On Intel Macs, the C type long double corresponds to 80-bit IEEE-754 dou-
ble extended precision. On PowerPC Macs, the C type long double corre-
sponds by default to ordinary double precision, but a 128-bit non-
IEEE-754 long double type is also available via the compiler flag
-mlong-double-128 and linker flag -lmx.
Details of the floating point formats can be found via "man float".
Users who need to repeatedly perform the same calculation on a large set
of data will probably find that the vector math library (composed of
vMathLib and vForce) yields better performance for their needs than
sequential calls to the libm.
Users who need to perform mathematical operations on complex floating-
point numbers should consult the man pages for the complex portion of the
math library, via "man complex".