From b935147761d1770bb115f09f8c28ddb4d36e1236 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 18 Mar 2012 17:09:34 -0400 Subject: assembly optimizations for fmod/remainder functions --- src/math/i386/fmod.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/math/i386/fmod.s (limited to 'src/math/i386/fmod.s') diff --git a/src/math/i386/fmod.s b/src/math/i386/fmod.s new file mode 100644 index 00000000..069fbfe7 --- /dev/null +++ b/src/math/i386/fmod.s @@ -0,0 +1,11 @@ +.global fmod +.type fmod,@function +fmod: + fldl 12(%esp) + fldl 4(%esp) +1: fprem + fstsw %ax + sahf + jp 1b + fstp %st(1) + ret -- cgit v1.2.1