Allow disabling vector_size use

This commit is contained in:
Behdad Esfahbod 2018-07-05 13:16:00 +04:30
parent d8a7dedc83
commit 058708a665

View File

@ -1108,10 +1108,12 @@ struct HbOpXor
/* Compiler-assisted vectorization. */ /* Compiler-assisted vectorization. */
/* The `vector_size' attribute was introduced in gcc 3.1. */ /* The `vector_size' attribute was introduced in gcc 3.1. */
#if defined( __GNUC__ ) && ( __GNUC__ >= 4 ) #if !defined(HB_VECTOR_SIZE)
#define HB_VECTOR_SIZE 128 # if defined( __GNUC__ ) && ( __GNUC__ >= 4 )
#elif !defined(HB_VECTOR_SIZE) # define HB_VECTOR_SIZE 128
#define HB_VECTOR_SIZE 0 # else
# define HB_VECTOR_SIZE 0
# endif
#endif #endif
/* Type behaving similar to vectorized vars defined using __attribute__((vector_size(...))). */ /* Type behaving similar to vectorized vars defined using __attribute__((vector_size(...))). */