summaryrefslogtreecommitdiff
path: root/include/math_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/math_util.h')
-rw-r--r--include/math_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/math_util.h b/include/math_util.h
index 385c044c6f..46981af05f 100644
--- a/include/math_util.h
+++ b/include/math_util.h
@@ -150,4 +150,9 @@ void rotate(const vector_3_t v, const matrix_3x3_t R, vector_3_t res);
*/
void rotate_inv(const vector_3_t v, const matrix_3x3_t R, vector_3_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 */