aboutsummaryrefslogtreecommitdiff
path: root/includedir/sys/param.h
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-16 17:41:25 +0300
committerCem Keylan <cem@ckyln.com>2020-10-16 17:41:25 +0300
commite2abcdca396661cbe0ae2ddb13d5c2b85682c13a (patch)
treeacf9b5c80b645617f882c45224c6e07251711842 /includedir/sys/param.h
downloadotools-e2abcdca396661cbe0ae2ddb13d5c2b85682c13a.tar.gz
initial commit
Diffstat (limited to 'includedir/sys/param.h')
-rw-r--r--includedir/sys/param.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includedir/sys/param.h b/includedir/sys/param.h
new file mode 100644
index 0000000..3167713
--- /dev/null
+++ b/includedir/sys/param.h
@@ -0,0 +1,3 @@
+#include_next <sys/param.h>
+#define ALIGNBYTES (sizeof(uintptr_t) - 1)
+#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)