[ot-font] Optimize rounding
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jul 2019 20:18:05 +0000 (13:18 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jul 2019 20:42:02 +0000 (13:42 -0700)
commit0d425e1eeaea97bf5e4fc9ce40e549332bc0cea1
tree2182e35ddb77a299a57e78e2f49c531ea3bdefc2
parent144326e215671a42fb3ac9f00ddef779ba354345
[ot-font] Optimize rounding

Part of https://github.com/harfbuzz/harfbuzz/issues/1801

The assumption that compiler optimizes "upem/2" to a shift only
works if upem is unsigned...  Anyway, spoon-feed the compiler.
src/hb-font.hh