Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep. sizeof(long double) == 16, at least for me on gcc and Linux. Keep in mind that different compilers implement "long double" differently. According to Wikipedia, MSVC++ just makes it a synonym for "double," but most other compilers on x86 make it this 80-bit "extended precision" floating point.


With MSVC on x86, you can pass /Qlong-double to the compiler for it to "properly size" the long double type :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: