From 997809ea4acb1bbf9eb567022925a33143bb8e6c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 10 Dec 2019 09:42:56 -0600 Subject: [PATCH] [simd] Blend 9ary search with bsearch --- src/hb-array.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/hb-array.hh b/src/hb-array.hh index a47f9d35e..1f8a9874c 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -373,15 +373,13 @@ struct hb_sorted_array_t : (unsigned) this->arrayZ[i]); } #endif -#if 0 - if (likely (this->length < 81)) + if (likely (this->length < 64)) return hb_bsearch_impl (pos, x, this->arrayZ, this->length, sizeof (Type), _hb_cmp_method); -#endif return hb_simd_ksearch_glyphid (pos, x, this->arrayZ, @@ -416,15 +414,13 @@ struct hb_sorted_array_t : (unsigned) this->arrayZ[i].last); } #endif -#if 0 - if (likely (this->length < 81)) + if (likely (this->length < 64)) return hb_bsearch_impl (pos, x, this->arrayZ, this->length, sizeof (Type), _hb_cmp_method); -#endif return hb_simd_ksearch_glyphid_range (pos, x, this->arrayZ,