diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-01-30 05:07:24 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-01-30 05:07:24 +0100 |
commit | 09341d6d5d8543a3fbf91f56148014e225df3d88 (patch) | |
tree | be1a3412fb0beb556c260ec546dd7128d95d3cf4 /test/monniaux/crypto-algorithms/modulo_division.c | |
parent | a50e263ced23c213413c29732508f7514fb552bb (diff) | |
download | compcert-kvx-09341d6d5d8543a3fbf91f56148014e225df3d88.tar.gz compcert-kvx-09341d6d5d8543a3fbf91f56148014e225df3d88.zip |
blowfish
Diffstat (limited to 'test/monniaux/crypto-algorithms/modulo_division.c')
-rw-r--r-- | test/monniaux/crypto-algorithms/modulo_division.c | 12 |
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; +} |