diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-07 12:34:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-17 15:58:30 +0000 |
| commit | 25ce458281facca6a8945a556ba2f9a81a1a6992 (patch) | |
| tree | 9f94135b848f0fde27b13bd800969faa8ecf5248 | |
| parent | box-drawing: use fill_boxes() instead of fill_rectangles() (diff) | |
box-drawing: don’t inline _thickness()
It results in quite a lot of floating point instructions being emitted
in almost every box drawing function we have...
| -rw-r--r-- | box-drawing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/box-drawing.c b/box-drawing.c index 87f6fdb5..ae152d9b 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -54,7 +54,7 @@ change_buffer_format(struct buf *buf, pixman_format_code_t new_format) buf->stride = stride; } -static int +static int NOINLINE _thickness(struct buf *buf, enum thickness thick) { return max((int)(buf->base_thickness * buf->dpi / 72.0 * buf->cell_size), 1) * thick; |
