diff options
author | Evan Lojewski <github@meklort.com> | 2019-05-04 10:34:10 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-05-04 10:34:10 -0600 |
commit | 418c47d20e0fe1b9074490f3e16109f80355cf3b (patch) | |
tree | 89f5a6e88dc3f2b9ed2e416231e6eb1ec52b3da6 /include/types.h | |
parent | f3bcf9a4af7ada743fae84c3572d9e4cc1d44ae5 (diff) | |
download | bcm5719-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.h | 2 |
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; |