View Single Post
Sep15-09, 09:31 PM
P: 4,512
I just read Wikipedia's long double page.
On the x86 architecture, most compilers implement long double as the 80-bit extended precision type supported by that hardware (sometimes stored as 12 or 16 bytes to maintain data structure alignment). An exception is Microsoft Visual C++ for x86, which makes long double a synonym for double.[1] (The Intel C++ compiler on Microsoft Windows supports extended precision, but requires the /Qlong‑double switch to access the hardware's extended precision format.[2])
I don't know what compiler you're using; long double is the same as double in Microsoft Visual C++.