diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-01 20:56:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-01 20:56:53 +0000 |
| commit | f7669c1e2419b6e0152dc928f29683dde5a36ce2 (patch) | |
| tree | bbb8f3f8452e5898d56b2526a16471394870cd10 /input.c | |
| parent | box-drawing: reduce number of function arguments (diff) | |
box-drawing: quadrants: convert quad_*() macros to functions
This reduces the size of the foot binary by ~4K; all the quad
macros called ceil() and floor() twice per macro, which caused many
float -> int -> float conversions in the expanded code.
By using functions instead, there’s no expansion - the conversion only
happens in one (well, four) places.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions
