mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 23:55:34 +08:00
Update from latest FreeBSD version
This commit is contained in:
parent
1bbb359583
commit
c804e50047
@ -269,7 +269,9 @@
|
||||
#ifndef howmany
|
||||
#define howmany(x, y) (((x)+((y)-1))/(y))
|
||||
#endif
|
||||
#define nitems(x) (sizeof((x)) / sizeof((x)[0]))
|
||||
#define rounddown(x, y) (((x)/(y))*(y))
|
||||
#define rounddown2(x, y) ((x)&(~((y)-1))) /* if y is power of two */
|
||||
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */
|
||||
#define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
|
||||
#define powerof2(x) ((((x)-1)&(x))==0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user