summaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-04 10:34:10 -0600
committerEvan Lojewski <github@meklort.com>2019-05-04 10:34:10 -0600
commit418c47d20e0fe1b9074490f3e16109f80355cf3b (patch)
tree89f5a6e88dc3f2b9ed2e416231e6eb1ec52b3da6 /include/types.h
parentf3bcf9a4af7ada743fae84c3572d9e4cc1d44ae5 (diff)
downloadbcm5719-ortega-418c47d20e0fe1b9074490f3e16109f80355cf3b.tar.gz
bcm5719-ortega-418c47d20e0fe1b9074490f3e16109f80355cf3b.zip
Begin cleaning up tx/rx code
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index e9ec714..64efd34 100644
--- a/include/types.h
+++ b/include/types.h
@@ -6,6 +6,8 @@
#define ARRAY_ELEMENTS(__array__) (sizeof(__array__)/sizeof(__array__[0]))
+#define DIVIDE_RND_UP(__value__, __round__) (((__value__) + (__round__) - 1) / (__round__))
+#define DIVIDE_RND_DOWN(__value__, __round__) ((__value__) / (__round__))
typedef union {
uint64_t u64;
OpenPOWER on IntegriCloud