summaryrefslogtreecommitdiffhomepage
path: root/arch/nt32/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-04-05 17:08:25 -0400
committermidipix <writeonce@midipix.org>2015-04-05 17:08:25 -0400
commit68229946748e76251e2a0e9669124f8179eef8b3 (patch)
treed2fef570ae554277189948fca547a425eccb0a0b /arch/nt32/src
parent296178913c5dfbc2b35842fc16ed680ef51fd402 (diff)
downloadmmglue-68229946748e76251e2a0e9669124f8179eef8b3.tar.bz2
mmglue-68229946748e76251e2a0e9669124f8179eef8b3.tar.xz
nt32: provide stubs of fundamental math functions to allow complication without libgcc.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'arch/nt32/src')
-rw-r--r--arch/nt32/src/chelper.c0
-rw-r--r--arch/nt32/src/nt32/chelper.S20
2 files changed, 20 insertions, 0 deletions
diff --git a/arch/nt32/src/chelper.c b/arch/nt32/src/chelper.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/nt32/src/chelper.c
diff --git a/arch/nt32/src/nt32/chelper.S b/arch/nt32/src/nt32/chelper.S
new file mode 100644
index 0000000..6d6a52b
--- /dev/null
+++ b/arch/nt32/src/nt32/chelper.S
@@ -0,0 +1,20 @@
+#ifdef LIBC_NO_COMPLEX
+
+.globl ___udivdi3
+.globl ___umoddi3
+.globl ___divdi3
+.globl ___moddi3
+
+___udivdi3:
+ ret
+
+___umoddi3:
+ ret
+
+___divdi3:
+ ret
+
+___moddi3:
+ ret
+
+#endif