This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/55016] request for specific builtins for rcp and rsqrt


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55016

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-22 18:56:42 UTC ---
(In reply to comment #0)
> void v() {
>   for(int i=0; i!=1024; ++i)
>     v0[i] = rsqrtf(v1[i]);
> }

Doesn't writing
v0[i] = 1 / sqrtf(v1[i])
work with suitable fast-math flags? It still produces an extra iteration to
refine the result, do we want a -ffaster-math?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]