diff options
Diffstat (limited to 'include/math_util.h')
-rw-r--r-- | include/math_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/math_util.h b/include/math_util.h index a536a0235a..4349306b34 100644 --- a/include/math_util.h +++ b/include/math_util.h @@ -170,4 +170,9 @@ void rotate(const intv3_t v, const mat33_fp_t R, intv3_t res); */ void rotate_inv(const intv3_t v, const mat33_fp_t R, intv3_t res); +/** + * Divide dividend by divisor and round it to the nearest integer. + */ +int round_divide(int64_t dividend, int divisor); + #endif /* __CROS_EC_MATH_UTIL_H */ |