aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/mppa_k1c/i64_sdiv.c
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-20 12:55:03 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-20 12:55:03 +0100
commit2638a022276c932ed00dc3f64b0e58bc0114a3d7 (patch)
treebc8beeb8f99d55ac3bf7012e858a0fae2d38bc31 /runtime/mppa_k1c/i64_sdiv.c
parent3718f2f520fc9a4dec2e9c1ac6eaf71f36f4f8a1 (diff)
downloadcompcert-kvx-2638a022276c932ed00dc3f64b0e58bc0114a3d7.tar.gz
compcert-kvx-2638a022276c932ed00dc3f64b0e58bc0114a3d7.zip
la division flottante fonctionne
Diffstat (limited to 'runtime/mppa_k1c/i64_sdiv.c')
-rw-r--r--runtime/mppa_k1c/i64_sdiv.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/mppa_k1c/i64_sdiv.c b/runtime/mppa_k1c/i64_sdiv.c
index e312f6e8..0b281d3e 100644
--- a/runtime/mppa_k1c/i64_sdiv.c
+++ b/runtime/mppa_k1c/i64_sdiv.c
@@ -40,4 +40,14 @@ int i32_sdiv (int a, int b)
{
return __divdi3 (a, b);
}
+
+extern double __divdf3(double, double);
+double f64_div(double a, double b) {
+ return __divdf3(a, b);
+}
+
+extern float __divsf3(float, float);
+float f32_div(float a, float b) {
+ return __divsf3(a, b);
+}
#endif