[simd] Enable GCC avx2 target if HB_SIMD_AVX2 is defined

This commit is contained in:
Behdad Esfahbod 2019-12-08 11:42:46 -06:00
parent 0033641189
commit c799742ac1
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,6 @@
* = WHICH EXTENSIONS TO TARGET
*
* There are four vector extensions that matter for integer work like we need:
* On x86 those are:
*
* On x86 / x86_64 (Intel / AMD), those are (in order of introduction):
*
@ -178,8 +177,11 @@
* Choose intrinsics set to use.
*/
#if !defined(HB_NO_SIMD) && (defined(HB_SIMD_AVX2) || defined(__AVX2__))
#pragma GCC target("avx2")
#include <x86intrin.h>
/* TODO: Test -mvzeroupper. */