[sanizie] Inline check_range if not OPTIMIZE_SIZE

BM_Font/load_face_and_shape/NotoNastaliqUrdu-Regular.ttf/hb                     -0.1046         -0.1051           194           173           193           172
BM_Font/load_face_and_shape/NotoSerifMyanmar-Regular.otf/hb                     -0.2401         -0.2412            36            27            36            27
This commit is contained in:
Behdad Esfahbod 2023-06-30 11:33:39 -06:00
parent 690af7aa69
commit 83eb744e09

View file

@ -254,6 +254,9 @@ struct hb_sanitize_context_t :
return (this->max_ops -= (int) count) > 0;
}
#ifndef HB_OPTIMIZE_SIZE
HB_ALWAYS_INLINE
#endif
bool check_range (const void *base,
unsigned int len) const
{