Quadruple Precision in C++ (GCC) -


Recently, GCC came out with 4.6.0. Unfortunately, GNU has supported Fortran, but not C or C ++ (which is also one is also included). I have not found any way to use these new features in C ++, however, GNU supports the __ float 128 type for guaranteed quadruple-precise float. Mathematics functions in GNU C does not seem to be supported, such as publisher (full value, q is suffix for quad).

Is there any way to work these tasks in C ++, or is there any optional library which I can use for mathematical work with __flat 128 ? What is the best way to work in the GCC to achieve quadruple accuracy? Now, I can add, subtract, and multiply them, but it is useless for them, considering that there is no way to convert them to string or like truncq and < Code> fabsq to create your own string function

Obviously, this is an installation error my part.

Whereas libccadmath.so is included in the main C / C + + portion of GCC, the FORTRAN version provides libquadmath.a and quadmath.h, which can be included to access functions.

  #include & lt; Quadmath.h & gt; # Include & lt; Iostream & gt; Int main () {char * y = new fodder [1000]; Quadmath_snprintf (y, 1000, "% Qf", 1.0q); Std :: cout & lt; & Lt; Y & lt; & Lt; Std :: endl; Return 0; }    

Comments