aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/lrtest.c
diff options
context:
space:
mode:
authorDoug Moore <dougm@FreeBSD.org>2024-06-12 09:26:42 +0000
committerDoug Moore <dougm@FreeBSD.org>2024-06-12 10:00:48 +0000
commitf0a0420dfd36ae90f86cc9bfb1342b8862b8c9ec (patch)
tree2913ef162c93f32b62298a10ae5882167292e1a3 /contrib/ncurses/test/lrtest.c
parenta880104a21bf41ebbb4ead26e6d4adda32bad76c (diff)
downloadsrc-main.tar.gz
src-main.zip
powerof2: replace loops with fls or ilog2HEADmain
In several places, a loop tests for powers of two, or iterates through powers of two. In those places, replace the loop with an invocation of fls or ilog2 without changing the meaning of the code. Reviewed by: alc, markj, kib, np, erj, avg (previous version) Differential Revision: https://reviews.freebsd.org/D45494
Diffstat (limited to 'contrib/ncurses/test/lrtest.c')
0 files changed, 0 insertions, 0 deletions