summaryrefslogtreecommitdiffstats
path: root/sys/i4b/driver/i4b_rbch.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-10-09 12:34:51 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-10-09 12:34:51 +0000
commit7fc1fa165474e47dca5d7dfb2584d97d169d686d (patch)
tree05af28efec26f6986f3d2bab1c2503a7d3f5faf2 /sys/i4b/driver/i4b_rbch.c
parent9dfb8b6e13f05d19533fa203776a55d7a0629005 (diff)
downloadFreeBSD-src-7fc1fa165474e47dca5d7dfb2584d97d169d686d.zip
FreeBSD-src-7fc1fa165474e47dca5d7dfb2584d97d169d686d.tar.gz
Cleanup of bitstring.h:
1) Add FreeBSD: tag. 2) Add parenthesis around macro args. 3) Add parenthesis around macros which are expressions. 4) Add do { ... } while (0) around macros which are compound statements. 5) Sync bitstr_size and bit_alloc with neater versions from NetBSD. 6) Fix bit_ffs and bit_ffc so that they don't search off the end of the bitstirng. 7) Try to avoid rightshifting signed ints. I didn't take NetBSD's version directly as the macros are significantly slower for long bitstrings. Bruce reviewed a previous version of this patch. PR: 21204 Submitted by: bob@immure.com Reviewed by: bde
Diffstat (limited to 'sys/i4b/driver/i4b_rbch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud