GCC 4.3(次期リリース版)
GCC 4.3では定数引数の数学関数が激しく最適化されるらしい.
The GCC middle-end has been integrated with the MPFR library. This allows GCC to evaluate and replace at compile-time calls to built-in math functions having constant arguments with their mathematically equivalent results. ... The following built-in functions take advantage of this new capability:
acos
,acosh
,asin
,asinh
,atan2
,atan
,atanh
,cbrt
,cos
,cosh
,drem
,erf
,erfc
,exp10
,exp2
,exp
,expm1
,fdim
,fma
,fmax
,fmin
,gamma_r
,hypot
,j0
,j1
,jn
,lgamma_r
,log10
,log1p
,log2
,log
,pow10
,pow
,remainder
,remquo
,sin
,sincos
,sinh
,tan
,tanh
,tgamma
,y0
,y1
andyn
.
>
The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA .... MPFR is based on the GMP multiple-precision library.