On 09/11/17 13:33, Laurent Bourgès wrote: > I checked in the latest jdk master and both cbrt / acos are NOT intrinsics. > > However, cbrt(x) = pow(x, 1/3) so it may be optmized... > > Could someone tell me how cbrt() is concretely implemented ?
It's in FdLibm.java. It's not great, but it's better than it used to be now that it's not a native call. I'm seeing that it's twice as fast as the previous native implementation. > In native libfdm, there is no e_cbrt.c ! -- Andrew Haley Java Platform Lead Engineer Red Hat UK Ltd. <https://www.redhat.com> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671