1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

Change uint8_t to equivalent base language type and add line break where 80

characters is exceeded in bit macros

Requested by: Bruce Evans
This commit is contained in:
Kip Macy 2007-12-06 19:11:14 +00:00
parent 718b6516c0
commit 8160baf419
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174370

View File

@ -238,10 +238,12 @@
#define MAXSYMLINKS 32
/* Bit map related macros. */
#define setbit(a,i) (((uint8_t *)(a))[(i)/NBBY] |= 1<<((i)%NBBY))
#define clrbit(a,i) (((uint8_t *)(a))[(i)/NBBY] &= ~(1<<((i)%NBBY)))
#define isset(a,i) (((const uint8_t *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
#define isclr(a,i) ((((const uint8_t *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
#define setbit(a,i) (((unsigned char *)(a))[(i)/NBBY] |= 1<<((i)%NBBY))
#define clrbit(a,i) (((unsigned char *)(a))[(i)/NBBY] &= ~(1<<((i)%NBBY)))
#define isset(a,i) \
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
#define isclr(a,i) \
((((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
/* Macros for counting and rounding. */
#ifndef howmany