math: add drem and dremf weak aliases to i386 remainder asm
authorSzabolcs Nagy <nsz@port70.net>
Wed, 8 Jan 2014 21:51:46 +0000 (22:51 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Wed, 8 Jan 2014 21:51:46 +0000 (22:51 +0100)
weak_alias was only in the c code, so drem was missing on platforms
where remainder is implemented in asm.

src/math/i386/remainder.s
src/math/i386/remainderf.s

index 47ee340..7f4be05 100644 (file)
@@ -1,6 +1,9 @@
 .global remainder
 .type remainder,@function
 remainder:
+.weak drem
+.type drem,@function
+drem:
        fldl 12(%esp)
        fldl 4(%esp)
 1:     fprem1
index 5b5fc23..ac6e367 100644 (file)
@@ -1,6 +1,9 @@
 .global remainderf
 .type remainderf,@function
 remainderf:
+.weak dremf
+.type dremf,@function
+dremf:
        flds 8(%esp)
        flds 4(%esp)
 1:     fprem1