summaryrefslogtreecommitdiff
path: root/rust/helpers/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/math.c')
-rw-r--r--rust/helpers/math.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/helpers/math.c b/rust/helpers/math.c
new file mode 100644
index 000000000..e2ee29bcc
--- /dev/null
+++ b/rust/helpers/math.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/math64.h>
+
+__rust_helper u64 rust_helper_mul_u64_add_u64_div_u64(u64 a, u64 b, u64 c, u64 d)
+{
+ return mul_u64_add_u64_div_u64(a, b, c, d);
+}