aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/crypto-algorithms/modulo_division.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/crypto-algorithms/modulo_division.c')
-rw-r--r--test/monniaux/crypto-algorithms/modulo_division.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/monniaux/crypto-algorithms/modulo_division.c b/test/monniaux/crypto-algorithms/modulo_division.c
new file mode 100644
index 00000000..6f91604d
--- /dev/null
+++ b/test/monniaux/crypto-algorithms/modulo_division.c
@@ -0,0 +1,12 @@
+unsigned long long __compcert_i64_udiv(unsigned long long x, unsigned long long y) {
+ return x / y;
+}
+unsigned long long __compcert_i64_umod(unsigned long long x, unsigned long long y) {
+ return x % y;
+}
+long long __compcert_i64_sdiv(long long x, long long y) {
+ return x / y;
+}
+long long __compcert_i64_smod(long long x, long long y) {
+ return x % y;
+}