1 Jan 2011 02:00
Re: Support for __float128 or quadruple precision?
On 2010-12-31 23:16Z, mbn wrote: > > I have been using the 80-bit precision long double with Mingw under cygwin. > I can use printf with long doubles when I add the -D__USE_MINGW_ANSI_STDIO > option: > > x86_64-w64-mingw32-g++.exe -D__USE_MINGW_ANSI_STDIO myfile.cpp > > And it works great. However I now need more precision and don't want to use > libraries like gmp, because I think that with quadruple precision should be > enough. My question is: Is there support for __float128 in the current MinGW > implementation Yes. 80x87 registers are eighty bits wide, so 'long double' fits the hardware; __float128 doesn't, so expect it to run an order of magnitude slower. > (or with other data type for quadruple precision floating > point numbers)? If so, then: > > - What's the suffix for __float128 literals? For long double it's L (e.g., > 1.0L) 'q' or 'Q'. See: http://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html > - Is printf implemented for __float128 variables? If so, what specifier > should be used? > - Is the power (pow) and natural logarithm (log) functions implemented? If(Continue reading)
RSS Feed