提交 02001da7 编写于 作者: P prr

8103675: Better Binary searches

Reviewed-by: srl, serb, mschoene
上级 44d60356
......@@ -91,6 +91,10 @@ const LookupSingle *BinarySearchLookupTable::lookupSingle(const LETableReference
LEReferenceTo<LookupSingle> entry(base, success, entries);
LEReferenceTo<LookupSingle> trial(entry, success, extra);
if (!LE_SUCCESS(success)) {
return NULL;
}
if (SWAPW(trial->glyph) <= ttGlyph) {
entry = trial;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册