freebsd-src/sys/dev/cxgb
Doug Moore f0a0420dfd powerof2: replace loops with fls or ilog2
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
2024-06-12 05:00:48 -05:00
..
common sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
sys sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bin2h.pl Two more $FreeBSD$ stragglers 2023-08-25 15:14:19 -06:00
cxgb_adapter.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
cxgb_include.h sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cxgb_ioctl.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
cxgb_main.c cxgb: Use device_set_descf() 2024-06-02 19:38:40 -04:00
cxgb_offload.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
cxgb_osdep.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
cxgb_sge.c powerof2: replace loops with fls or ilog2 2024-06-12 05:00:48 -05:00
cxgb_t3fw.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cxgb_t3fw.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
t3b_protocol_sram.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
t3b_tp_eeprom.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
t3c_protocol_sram.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
t3c_tp_eeprom.h sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00