Changeset c804e50 in rtems-libbsd


Ignore:
Timestamp:
Oct 17, 2013, 8:31:30 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
c333bab
Parents:
1bbb359
git-author:
Sebastian Huber <sebastian.huber@…> (10/17/13 08:31:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:48)
Message:

Update from latest FreeBSD version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/rtems/bsd/sys/param.h

    r1bbb359 rc804e50  
    270270#define howmany(x, y)   (((x)+((y)-1))/(y))
    271271#endif
     272#define nitems(x)       (sizeof((x)) / sizeof((x)[0]))
    272273#define rounddown(x, y) (((x)/(y))*(y))
     274#define rounddown2(x, y) ((x)&(~((y)-1)))          /* if y is power of two */
    273275#define roundup(x, y)   ((((x)+((y)-1))/(y))*(y))  /* to any y */
    274276#define roundup2(x, y)  (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
Note: See TracChangeset for help on using the changeset viewer.