As I read the article, I was wondering if the GCC compiler was converting some of the code to intrinsics?
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?
Speaking of hotspot:
No intrinsics for >64 bits.
Comparing Strings/copying arrays does utilize SSE.
There is a minimal support for auto-vectorizing some simple loops. [0] (4y old thread)
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?