* @brief compare the limits with the input * * @param input the input number * @param lower the lower bound of the limitation * @param upper the upper bound of the limitation * @return uint32_t */
| 104 | * @return uint32_t |
| 105 | */ |
| 106 | inline uint32_t CompareLimit(uint32_t input, uint32_t lower, uint32_t upper) { |
| 107 | if (input <= lower) { |
| 108 | return lower; |
| 109 | } else if (input >= upper) { |
| 110 | return upper; |
| 111 | } else { |
| 112 | return input; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * @brief get the ceil of the division |
nothing calls this directly
no outgoing calls
no test coverage detected