Lines Matching defs:middle
816 HB_UShort min, max, new_min, new_max, middle;
837 middle = max - ( ( max - min ) >> 1 );
839 if ( glyphID == array[middle] )
841 *index = middle;
844 else if ( glyphID < array[middle] )
846 if ( middle == min )
848 new_max = middle - 1;
852 if ( middle == max )
854 new_min = middle + 1;
866 HB_UShort min, max, new_min, new_max, middle;
887 middle = max - ( ( max - min ) >> 1 );
889 if ( glyphID >= rr[middle].Start && glyphID <= rr[middle].End )
891 *index = rr[middle].StartCoverageIndex + glyphID - rr[middle].Start;
894 else if ( glyphID < rr[middle].Start )
896 if ( middle == min )
898 new_max = middle - 1;
902 if ( middle == max )
904 new_min = middle + 1;
1197 HB_UShort min, max, new_min, new_max, middle;
1224 middle = max - ( ( max - min ) >> 1 );
1226 if ( glyphID >= crr[middle].Start && glyphID <= crr[middle].End )
1228 *klass = crr[middle].Class;
1232 else if ( glyphID < crr[middle].Start )
1234 if ( middle == min )
1240 new_max = middle - 1;
1244 if ( middle == max )
1250 new_min = middle + 1;
1255 *index = middle;