Commit d7edb0d6 authored by Ivo Anjo's avatar Ivo Anjo

Compile native code with -march=core-avx2

We're going to be running on (at least) haswell anyway.
parent ecb10e24
......@@ -56,6 +56,8 @@
<compilerarg value="-O2"/>
<compilerarg value="-std=c99"/>
<compilerarg value="-mrtm"/>
<!-- we are going to be running on haswell at least, so why not take advantage of it -->
<compilerarg value="-march=core-avx2"/>
<fileset dir="${c.src.dir}" includes="**/*.c"/>
<includepath>
<path path="${java.home}/../include"/>
......@@ -71,6 +73,11 @@
<compilerarg value="-Wall"/>
<compilerarg value="-std=c99"/>
<compilerarg value="-O2"/>
<!--
-march=core-avx-i is a bit less recent than -march=core-avx2, for older compilers;
see also http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
-->
<compilerarg value="-march=core-avx-i"/>
<defineset define="JAVARTM_RTM_INTRINSICS"/>
<fileset dir="${c.src.dir}" includes="**/*.c"/>
<includepath>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment