summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-05-13 22:54:47 +0700
committerhathach <[email protected]>2022-05-13 22:54:47 +0700
commitc5ba1ea8c17a379beb47d9689e85e2ce6e67206f (patch)
treedc8834137b715ed660033674aebfece1057d6a10 /src/common
parent11f0ffd9a833f4ea9b28fd12f4dff03e9bb99331 (diff)
changes proposal to audio feedback computation
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index bcdf8933a..b1ee40a1a 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -134,12 +134,6 @@ TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_offset4k(uint32_t value) { retur
//------------- Mathematics -------------//
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_div_ceil(uint32_t v, uint32_t d) { return (v + d -1)/d; }
-/// inclusive range checking TODO remove
-TU_ATTR_ALWAYS_INLINE static inline bool tu_within(uint32_t lower, uint32_t value, uint32_t upper)
-{
- return (lower <= value) && (value <= upper);
-}
-
// log2 of a value is its MSB's position
// TODO use clz TODO remove
static inline uint8_t tu_log2(uint32_t value)