diff options
Diffstat (limited to 'include/apos/utils.h')
| -rw-r--r-- | include/apos/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/apos/utils.h b/include/apos/utils.h index f1e79fa..eff473f 100644 --- a/include/apos/utils.h +++ b/include/apos/utils.h @@ -33,6 +33,8 @@ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define ALIGNED(x, a) ((x) % a == 0) +#define ptradd(x, y) (((vm_t)(x)) + ((vm_t)(y))) + #include <apos/types.h> static inline size_t align_up(size_t val, size_t a) |
