summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Nelson <sam.nelson@ti.com>2019-10-07 15:28:41 -0400
committerSam Nelson <sam.nelson@ti.com>2019-10-08 15:51:04 -0400
commitdd6f300e1a1d1e1a18d2491efd059e7e3b0f4e6d (patch)
treef6b461cdecec14fa9843c7a2f0479e762454d7b5
parent6f8c3b66c4a5f31af01df27a99b220895a7ba2fe (diff)
downloadipc-dd6f300e1a1d1e1a18d2491efd059e7e3b0f4e6d.tar.gz
Ipc: Add round up function separately for Address pointers
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r--packages/ti/sdo/ipc/_Ipc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/ti/sdo/ipc/_Ipc.h b/packages/ti/sdo/ipc/_Ipc.h
index ba6138f..12c76f5 100644
--- a/packages/ti/sdo/ipc/_Ipc.h
+++ b/packages/ti/sdo/ipc/_Ipc.h
@@ -44,4 +44,7 @@
/* Round the value 'a' up by 'b', a power of two */
#define _Ipc_roundup(a, b) \
- (UInt32)((((UInt32)(a)) + (((UInt32)(b)) - 1)) & ~((UInt32)(b) - 1))
+ ((UInt32)((((UInt32)(a)) + (((UInt32)(b)) - 1)) & ~((UInt32)(b) - 1)))
+
+#define _Ipc_ptrRoundup(a, b) \
+ ((UArg)((((UArg)(a)) + (((UArg)(b)) - 1)) & ~((UArg)(b) - 1)))