Sunday, December 17, 2006

128-bit long double support in Mac OS X


The size of the long double data type is 16 bytes in the version of gcc in Mac OS X 10.4.  Unfortunately printf in the version of libc, included in the OS, only includes support for printing 64 bit long doubles.  So if you want to print the value of a 128 bit long double, the output will not be as precise as the data itself.


I am trying to figure out a different way to print this data.