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/remainderl.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/math/i386/remainderl.s (limited to 'src/math/i386/remainderl.s') diff --git a/src/math/i386/remainderl.s b/src/math/i386/remainderl.s new file mode 100644 index 00000000..00978729 --- /dev/null +++ b/src/math/i386/remainderl.s @@ -0,0 +1,11 @@ +.global remainderl +.type remainderl,@function +remainderl: + fldt 16(%esp) + fldt 4(%esp) +1: fprem1 + fstsw %ax + sahf + jp 1b + fstp %st(1) + ret -- cgit v1.2.1