[simd] Add disabled code for preferring bsearch for shorter lists

This commit is contained in:
Behdad Esfahbod 2019-12-09 21:59:00 -06:00
parent 41a7ec0697
commit b7d01281d2
1 changed files with 9 additions and 0 deletions

View File

@ -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<hb_codepoint_t, Type>);
#endif
return hb_simd_ksearch_glyphid_range (pos,
x,