made change per reviews, remove dcd_edpt_close(), rename and move thing around

This commit is contained in:
hathach
2024-11-28 15:56:47 +07:00
parent c514a8c879
commit 7f61a5a43b
2 changed files with 55 additions and 113 deletions

View File

@@ -177,6 +177,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool tu_is_aligned64(uint64_t value) { retur
//------------- Mathematics -------------//
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_div_ceil(uint32_t v, uint32_t d) { return TU_DIV_CEIL(v, d); }
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_round_up(uint32_t v, uint32_t f) { return tu_div_ceil(v, f) * f; }
// log2 of a value is its MSB's position
// TODO use clz TODO remove