From 1ebaa090d80bf0b59308d2c70f5e58dd8da47450 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 Jul 2018 14:04:13 +0430 Subject: [PATCH] Disable vectorization Disable vectorization for now. To correctly use them, we should use posix_memalign() to allocate them. Otherwise, can cause misaligned access. https://bugs.chromium.org/p/chromium/issues/detail?id=860184 --- src/hb-private.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hb-private.hh b/src/hb-private.hh index 41e6c200c..5cec8e0b4 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -1107,6 +1107,18 @@ struct HbOpXor /* Compiler-assisted vectorization. */ +/* + * Disable vectorization for now. To correctly use them, we should + * use posix_memalign() to allocate them. Otherwise, can cause + * misaligned access. + * + * https://bugs.chromium.org/p/chromium/issues/detail?id=860184 + */ +#if !defined(HB_VECTOR_SIZE) +# define HB_VECTOR_SIZE 0 +#endif + + /* The `vector_size' attribute was introduced in gcc 3.1. */ #if !defined(HB_VECTOR_SIZE) # if defined( __GNUC__ ) && ( __GNUC__ >= 4 )