Using a java port of fdlibm on the hsail backend

Deneau, Tom tom.deneau at amd.com
Wed May 7 18:56:14 UTC 2014


Sending to Azeem representing the hotspot team and to the graal team...

On the hsail backend, we would like to implement the various java.lang.Math routines and we need a solution that is completely hsail, since we can't call out to any  host C routines.  An easy solution for us would be to use a java implementation of java.lang.Math.  I saw this mail back in the hotspot-dev archives describing a port of FDLIBM to Java which looked promising.

http://mail.openjdk.java.net/pipermail/hotspot-dev/2009-August/001992.html

I have tried the sin() routine out of this port in the hsail backend and it seems to work well functionally and performance-wise.

Is there any problem with using this code as part of the graal project as @MethodSubstitutions?

-- Tom Deneau



More information about the graal-dev mailing list