toggle for intrisinics

gustav trede gustav.trede at
Thu Jun 25 13:45:46 UTC 2009


Is it from a technical standpoint possible to:

Add an -XX parameter that toggles direct intrinsics to the cpu native
version of some Math methods like cos , sin  without any extra (parameter
range check with its fast and slow code paths).

If so i would be happy to implement it myself , with some minor initial
guideline to the codebase please.

Despite breaking spec, the non exact results are good enough for many
practical uses, like 3D engines etc where competitive performance with other
languages is of importance.

It would be nice if such a patch could be integrated into the jdk itself so
others can use it,
else i will have to bundle a private compiled version with my application.

 gustav trede
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the core-libs-dev mailing list