From 83eb744e09bb8ff7a9c78c79569100f560f129fb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 30 Jun 2023 11:33:39 -0600 Subject: [PATCH] [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 --- src/hb-sanitize.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-sanitize.hh b/src/hb-sanitize.hh index 0f905bd99..c28582997 100644 --- a/src/hb-sanitize.hh +++ b/src/hb-sanitize.hh @@ -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 {