blob: 00643167c875d02f9b8cc02579c013402d6d3bf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef RT_STDDEF_H
#define RT_STDDEF_H
#define nil ((void*)0)
/* Generate a number with the x lowest bits set to 1 */
#define LOWER(X) ((1 << (X)) - 1)
/* Align a number to the upper boundary */
#define ALIGN_UP(X, F) ((X) - (X) % (F) + (F))
#endif
|