From 01e1c61e9fcf4a0b0164a7fe5395a209a50f6905 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 19:22:05 +0300 Subject: Optimize hot loops with direct access, LUTs, and closed-form formulas --- src/screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/screen.c') 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; } -- cgit v1.2.3