From bcff807dc3c1f07db61dae804086b8183bf5df7b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 8 Jan 2014 22:51:46 +0100 Subject: [PATCH] math: add drem and dremf weak aliases to i386 remainder asm 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 | 3 +++ src/math/i386/remainderf.s | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/math/i386/remainder.s b/src/math/i386/remainder.s index 47ee3402..7f4be051 100644 --- a/src/math/i386/remainder.s +++ b/src/math/i386/remainder.s @@ -1,6 +1,9 @@ .global remainder .type remainder,@function remainder: +.weak drem +.type drem,@function +drem: fldl 12(%esp) fldl 4(%esp) 1: fprem1 diff --git a/src/math/i386/remainderf.s b/src/math/i386/remainderf.s index 5b5fc235..ac6e3677 100644 --- a/src/math/i386/remainderf.s +++ b/src/math/i386/remainderf.s @@ -1,6 +1,9 @@ .global remainderf .type remainderf,@function remainderf: +.weak dremf +.type dremf,@function +dremf: flds 8(%esp) flds 4(%esp) 1: fprem1 -- 2.25.1