#include <kernel/config.h>
#include <types.h>
Go to the source code of this file.
Defines | |
#define | TRUE 1 |
Logical value of TRUE. | |
#define | FALSE 0 |
Logical value of FALSE. | |
#define | NULL 0 |
NULL constant. | |
#define | __LITTLE_ENDIAN__ 1234 |
Little endian architecture. | |
#define | __BIG_ENDIAN__ 4321 |
Big endian architecture. | |
#define | __BYTE_ORDER__ __LITTLE_ENDIAN__ |
The current architecture. | |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
This macro returns the minimum value between a and b. | |
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
This macro returns the maximum value between a and b. | |
#define | ABS(a) ((a) < 0 ? -(a) : (a)) |
This macro returns the absolute value of a. | |
#define | TRUNC(addr, align) ((addr) & ~((align) - 1)) |
This macro truncates addr to the align boundary. | |
#define | ALIGN_DOWN(addr, align) TRUNC(addr, align) |
This macro rounds down addr to the align boundary. | |
#define | ALIGN_UP(addr, align) ( ((addr) + (align) - 1) & (~((align) - 1)) ) |
This macro rounds up addr to the align boundary. |
Definition in file const.h.
|
Big endian architecture.
|
|
The current architecture.
|
|
Little endian architecture.
|
|
This macro returns the absolute value of a.
|
|
This macro rounds down addr to the align boundary.
|
|
This macro rounds up addr to the align boundary.
|
|
Logical value of FALSE.
|
|
This macro returns the maximum value between a and b.
|
|
This macro returns the minimum value between a and b.
|
|
NULL constant.
|
|
Logical value of TRUE.
|
|
This macro truncates addr to the align boundary.
|