diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 19:22:05 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 19:22:05 +0300 |
| commit | 01e1c61e9fcf4a0b0164a7fe5395a209a50f6905 (patch) | |
| tree | 1f1eb33e49eab338650a42e8f602af75d8d28a24 /src/screen.c | |
| parent | 2d02d39d2cd32e9eb559638865d2746f02c08556 (diff) | |
Optimize hot loops with direct access, LUTs, and closed-form formulas
Diffstat (limited to 'src/screen.c')
| -rw-r--r-- | src/screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index fbfebfc..e3f0191 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1012,8 +1012,7 @@ struct term *term_new(const struct term_options *opt) memcpy(t->tcap_name, "wsap_term", sizeof("wsap_term")); term_tabs_default(t); t->full_gen = 1; - for (int j = 0; j < TERM_WIDTH_SLOTS; j++) - t->text_width.lo[j] = 0xFFFFFFFFu; + memset(t->text_width.lo, 0xFF, sizeof(t->text_width.lo)); return t; } |
