diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-13 00:34:48 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-13 00:34:48 +0200 |
| commit | 1787584ad839002584e0752e4df41b6f3b70064b (patch) | |
| tree | 41ece61d6df4396e1298247a8cc2f2661e174ab1 /lib/cmap | |
| parent | 6b989beb2f870c46363c1feba1a25c59add41d5a (diff) | |
| download | plan9front-1787584ad839002584e0752e4df41b6f3b70064b.tar.xz | |
libdraw: avoid BPSHORT()/BPLONG() expansion, cleanup loadchar(),cachechars()
assigning the expression value to a temporary variable in
BPSHORT() and BPLONG() saves arround 2K of text in rio on
arm and arround 1K on amd64.
loadchar(): use the passed in "h" as the char index instead
of recomputing it from c-f->cache. dont recompute wid.
cachechars(): do cache lookup and find oldest entry in a
single loop pass.
Diffstat (limited to 'lib/cmap')
0 files changed, 0 insertions, 0 deletions
