summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-09-29 09:01:05 +0000
committerJakub Jelinek <jakub@redhat.com>2004-09-29 09:01:05 +0000
commitf9ff03a8353afc7e83bafc99c1a2fb53f80a8128 (patch)
tree2cc57c4897acdb18cfb94e94915b0288a7f15759
parent2b13f2ccc0b53bb2f3a4f6dcc006d4dea7149e16 (diff)
* 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.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/i386/fpu/s_fdim.S17
-rw-r--r--sysdeps/i386/fpu/s_fdimf.S17
-rw-r--r--sysdeps/i386/fpu/s_fdiml.S17
4 files changed, 33 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index f8a6690432..46dc4b994e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2004-09-28 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
diff --git a/sysdeps/i386/fpu/s_fdim.S b/sysdeps/i386/fpu/s_fdim.S
index 559a814182..92deb15d85 100644
--- a/sysdeps/i386/fpu/s_fdim.S
+++ b/sysdeps/i386/fpu/s_fdim.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(__fdim)
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(__fdim)
weak_alias (__fdim, fdim)
diff --git a/sysdeps/i386/fpu/s_fdimf.S b/sysdeps/i386/fpu/s_fdimf.S
index eb6ba5abc4..905cec2fae 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)
diff --git a/sysdeps/i386/fpu/s_fdiml.S b/sysdeps/i386/fpu/s_fdiml.S
index c4e9f15404..754b221de2 100644
--- a/sysdeps/i386/fpu/s_fdiml.S
+++ b/sysdeps/i386/fpu/s_fdiml.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(__fdiml)
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(__fdiml)
weak_alias (__fdiml, fdiml)