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:
parent
718b6516c0
commit
8160baf419
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user