public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] i386 and sparc64 fabs
@ 2002-03-29 12:52 Jakub Jelinek
  2002-04-02 16:23 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2002-03-29 12:52 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

No need to generate quite lengthy code for fabs* on these arches:

2002-03-29  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/s_fabs.S: New.
	* sysdeps/i386/fpu/s_fabsf.S: New.
	* sysdeps/i386/fpu/s_fabsl.S: New.
	* sysdeps/sparc/sparc64/fpu/s_fabs.c: New.
	* sysdeps/sparc/sparc64/fpu/s_fabsf.c: New.
	* sysdeps/sparc/sparc64/fpu/s_fabsl.c: New.

--- libc/sysdeps/i386/fpu/s_fabsf.S.jj	Fri Mar 29 21:46:14 2002
+++ libc/sysdeps/i386/fpu/s_fabsf.S	Fri Mar 29 21:49:04 2002
@@ -0,0 +1,9 @@
+#include <sysdep.h>
+
+	.text
+ENTRY(__fabsf)
+	flds	4(%esp)
+	fabs
+	ret
+END(__fabsf)
+weak_alias (__fabsf, fabsf)
--- libc/sysdeps/i386/fpu/s_fabsl.S.jj	Fri Mar 29 21:46:14 2002
+++ libc/sysdeps/i386/fpu/s_fabsl.S	Fri Mar 29 21:48:40 2002
@@ -0,0 +1,9 @@
+#include <sysdep.h>
+
+	.text
+ENTRY(__fabsl)
+	fldt	4(%esp)
+	fabs
+	ret
+END(__fabsl)
+weak_alias (__fabsl, fabsl)
--- libc/sysdeps/i386/fpu/s_fabs.S.jj	Fri Mar 29 21:46:14 2002
+++ libc/sysdeps/i386/fpu/s_fabs.S	Fri Mar 29 21:47:47 2002
@@ -0,0 +1,9 @@
+#include <sysdep.h>
+
+	.text
+ENTRY(__fabs)
+	fldl	4(%esp)
+	fabs
+	ret
+END(__fabs)
+weak_alias (__fabs, fabs)
--- libc/sysdeps/sparc/sparc64/fpu/s_fabs.c.jj	Fri Mar 29 21:56:28 2002
+++ libc/sysdeps/sparc/sparc64/fpu/s_fabs.c	Fri Mar 29 21:55:29 2002
@@ -0,0 +1,5 @@
+double __fabs (double x)
+{
+  return __builtin_fabs (x);
+}
+weak_alias (__fabs, fabs)
--- libc/sysdeps/sparc/sparc64/fpu/s_fabsf.c.jj	Fri Mar 29 21:56:28 2002
+++ libc/sysdeps/sparc/sparc64/fpu/s_fabsf.c	Fri Mar 29 21:55:59 2002
@@ -0,0 +1,5 @@
+float __fabsf (float x)
+{
+  return __builtin_fabsf (x);
+}
+weak_alias (__fabsf, fabsf)
--- libc/sysdeps/sparc/sparc64/fpu/s_fabsl.c.jj	Fri Mar 29 21:56:28 2002
+++ libc/sysdeps/sparc/sparc64/fpu/s_fabsl.c	Fri Mar 29 21:56:14 2002
@@ -0,0 +1,5 @@
+long double __fabsl (long double x)
+{
+  return __builtin_fabsl (x);
+}
+weak_alias (__fabsl, fabsl)

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] i386 and sparc64 fabs
  2002-03-29 12:52 [PATCH] i386 and sparc64 fabs Jakub Jelinek
@ 2002-04-02 16:23 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2002-04-02 16:23 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

On Fri, 2002-03-29 at 12:52, Jakub Jelinek wrote:
> Hi!
> 
> No need to generate quite lengthy code for fabs* on these arches:

Thanks, I've applied the patch.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-03  0:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-29 12:52 [PATCH] i386 and sparc64 fabs Jakub Jelinek
2002-04-02 16:23 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).