From b7d01281d29c05b7b08d0757d380067dd28e0cfb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 9 Dec 2019 21:59:00 -0600 Subject: [PATCH] [simd] Add disabled code for preferring bsearch for shorter lists --- src/hb-array.hh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hb-array.hh b/src/hb-array.hh index 23c901e17..278befb85 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -373,6 +373,15 @@ struct hb_sorted_array_t : (unsigned) this->arrayZ[i].first, (unsigned) this->arrayZ[i].last); } +#endif +#if 0 + if (likely (this->length < 81)) + return hb_bsearch_impl (pos, + x, + this->arrayZ, + this->length, + sizeof (Type), + _hb_cmp_method); #endif return hb_simd_ksearch_glyphid_range (pos, x,