Allow disabling vector_size use

pull/1089/head
Behdad Esfahbod 6 years ago
parent d8a7dedc83
commit 058708a665
  1. 4
      src/hb-private.hh

@ -1108,11 +1108,13 @@ 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(HB_VECTOR_SIZE)
# if defined( __GNUC__ ) && ( __GNUC__ >= 4 ) # if defined( __GNUC__ ) && ( __GNUC__ >= 4 )
# define HB_VECTOR_SIZE 128 # define HB_VECTOR_SIZE 128
#elif !defined(HB_VECTOR_SIZE) # else
# define HB_VECTOR_SIZE 0 # 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(...))). */
template <typename elt_t, unsigned int byte_size> template <typename elt_t, unsigned int byte_size>

Loading…
Cancel
Save