Enable FMA support for windows 64bit
This commit is contained in:
parent
5ff330bd7e
commit
cbd2cc7b2e
3
wscript
3
wscript
@ -493,7 +493,8 @@ int main() { return 0; }''',
|
||||
if opt.fpu_optimization:
|
||||
if conf.env['build_target'] == 'armhf' or conf.env['build_target'] == 'aarch64':
|
||||
conf.define('ARM_NEON_SUPPORT', 1)
|
||||
elif conf.env['build_target'] == 'aarch64':
|
||||
elif conf.env['build_target'] == 'mingw':
|
||||
if re.search ('x86_64-w64', str(conf.env['CC'])) != None:
|
||||
conf.define ('FPU_AVX_FMA_SUPPORT', 1)
|
||||
elif conf.env['build_target'] == 'i386' or conf.env['build_target'] == 'i686' or conf.env['build_target'] == 'x86_64':
|
||||
conf.check_cxx(fragment = "#include <immintrin.h>\nint main(void) { __m128 a; _mm_fmadd_ss(a, a, a); return 0; }\n",
|
||||
|
Loading…
Reference in New Issue
Block a user