summaryrefslogtreecommitdiff
path: root/src/ipc/ipc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc/ipc.h')
-rw-r--r--src/ipc/ipc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipc/ipc.h b/src/ipc/ipc.h
index 36f3e213..746a905c 100644
--- a/src/ipc/ipc.h
+++ b/src/ipc/ipc.h
@@ -16,3 +16,9 @@
#ifndef IPC_64
#define IPC_64 0x100
#endif
+
+#define IPC_TIME64 (IPC_STAT & 0x100)
+
+#define IPC_CMD(cmd) (((cmd) & ~IPC_TIME64) | IPC_64)
+
+#define IPC_HILO(b,t) ((b)->t = (b)->__##t##_lo | 0LL+(b)->__##t##_hi<<32)