by soldergenie · 10y ago · 0 comments
Partial example is here: https://codereview.stackexchange.com/questions/72286/multipl...
If this is the case, and I'm not a Java programmer, I was wondering if there is a way in Java to tell the JVM to do something similar and, if so, how does the JVM cope with different CPUs. Does the JVM, on x86-64 for example, know when it can use SSE instructions?
[0]: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/...
Definitely not an 'of course', and for critical performance if the function is small enough it might actually be slower to write it in C and call it from the JVM.