aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_fdimf.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-30 02:56:42 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-30 02:56:42 +0000
commit7ff2ba908a0341bf3e6f1f7f6db2cac7f89935b5 (patch)
tree4b870c3b5966d7bfe3506eb85ad19499b6086bc8 /sysdeps/i386/fpu/s_fdimf.S
parentf7e7a396812f5e6a6ec49ad84204d334630964a0 (diff)
downloadglibc-7ff2ba908a0341bf3e6f1f7f6db2cac7f89935b5.zip
glibc-7ff2ba908a0341bf3e6f1f7f6db2cac7f89935b5.tar.gz
glibc-7ff2ba908a0341bf3e6f1f7f6db2cac7f89935b5.tar.bz2
Update.
2004-09-29 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf. * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise. * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise. 004-09-29 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'sysdeps/i386/fpu/s_fdimf.S')
-rw-r--r--sysdeps/i386/fpu/s_fdimf.S17
1 files changed, 9 insertions, 8 deletions
diff --git a/sysdeps/i386/fpu/s_fdimf.S b/sysdeps/i386/fpu/s_fdimf.S
index eb6ba5a..905cec2 100644
--- a/sysdeps/i386/fpu/s_fdimf.S
+++ b/sysdeps/i386/fpu/s_fdimf.S
@@ -1,5 +1,5 @@
/* Compute positive difference.
- Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -30,22 +30,23 @@ ENTRY(__fdimf)
sahf
jp 1f
- fsubrp %st, %st(1)
- jc 2f
+ jc 3f
- fstp %st(0)
+ fstp %st(1)
fldz
jmp 2f
+3: fsubrp %st, %st(1)
+ ret
+
1: fxam
fnstsw
andb $0x45, %ah
cmpb $0x01, %ah
- je 3f
+ je 2f
fxch
-3: fstp %st(1)
-
-2: ret
+2: fstp %st(1)
+ ret
END(__fdimf)
weak_alias (__fdimf, fdimf)