Math trig intrinsics and compiler options

Azeem Jiva azeemj at gmail.com
Wed Jul 15 19:21:58 PDT 2009


Joe,
  Gustav sent me an email asking for help with the intrinsification of
the trig functions and a suggestion I gave him was to not call
fsin/fcos/ftan since those instructions are microcoded on Intel/AMD
hardware and very slow.  Slower than the call to
sharedRuntimeTrig.cpp, and in all cases it's best to stay away from
the hardware instructions.  The change Gustav proposes only enables
calling the sharedRuntime calls.  Granted sharedRuntime* files are not
optimized by the Windows compiler, but on Solaris and Linux they are
and depending on what current version of MSVC++ you guys are using it
might be worth enabling optimizations.

-- 
Azeem Jiva



More information about the hotspot-dev mailing list