public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 3/4] alpha: Avoid fgets plt entry
  2012-05-30 23:11 [PATCH 1/4] alpha: Use dynamic rounding with sqrt insn Richard Henderson
  2012-05-30 23:11 ` [PATCH 4/4] alpha: Remove __connect_internal alias Richard Henderson
@ 2012-05-30 23:11 ` Richard Henderson
  2012-05-30 23:11 ` [PATCH 2/4] alpha: Use dbl-64/wordsize-64 Richard Henderson
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2012-05-30 23:11 UTC (permalink / raw)
  To: libc-ports

And since the FILE is function local, avoid locking too.
---
 ChangeLog.alpha                        |    3 +++
 sysdeps/unix/sysv/linux/alpha/ioperm.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index e327242..246345a 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,8 @@
 2012-05-30  Richard Henderson  <rth@twiddle.net>
 
+	* sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use
+	fgets_unlocked.
+
 	* sysdeps/alpha/Implies: Include ieee754/dbl-64/wordsize-64.
 
 	* sysdeps/alpha/alphaev6/fpu/e_sqrt.S: Use dynamic rounding.
diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c
index 8b6c830..686c7ed 100644
--- a/sysdeps/unix/sysv/linux/alpha/ioperm.c
+++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c
@@ -504,7 +504,7 @@ process_cpuinfo(struct cpuinfo_data *data)
 
   while (1)
     {
-      if (fgets (dummy, 256, fp) == NULL)
+      if (fgets_unlocked (dummy, 256, fp) == NULL)
 	break;
       if (!got_type &&
 	  sscanf (dummy, "system type : %256[^\n]\n", data->systype) == 1)
-- 
1.7.7.6

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

* [PATCH 1/4] alpha: Use dynamic rounding with sqrt insn
@ 2012-05-30 23:11 Richard Henderson
  2012-05-30 23:11 ` [PATCH 4/4] alpha: Remove __connect_internal alias Richard Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Richard Henderson @ 2012-05-30 23:11 UTC (permalink / raw)
  To: libc-ports

---
 ChangeLog.alpha                      |    5 +++++
 sysdeps/alpha/alphaev6/fpu/e_sqrt.S  |    6 +++---
 sysdeps/alpha/alphaev6/fpu/e_sqrtf.S |    6 +++---
 sysdeps/alpha/fpu/math_private.h     |   26 ++++++++++++++++++++++++++
 4 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index f87c9d6..44ffdc7 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,10 @@
 2012-05-30  Richard Henderson  <rth@twiddle.net>
 
+	* sysdeps/alpha/alphaev6/fpu/e_sqrt.S: Use dynamic rounding.
+	* sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: Likewise.
+	* sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): New.
+	(__ieee754_sqrtf): New.
+
 	* sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Replace
 	_internal alias by hidden_def.
 
diff --git a/sysdeps/alpha/alphaev6/fpu/e_sqrt.S b/sysdeps/alpha/alphaev6/fpu/e_sqrt.S
index eae1fb4..c4625d0 100644
--- a/sysdeps/alpha/alphaev6/fpu/e_sqrt.S
+++ b/sysdeps/alpha/alphaev6/fpu/e_sqrt.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,9 +33,9 @@ ENTRY(__ieee754_sqrt)
 
 	.align 4
 #ifdef _IEEE_FP_INEXACT
-	sqrtt/sui $f16, $f0
+	sqrtt/suid $f16, $f0
 #else
-	sqrtt/su $f16, $f0
+	sqrtt/sud $f16, $f0
 #endif
 	ret
 	nop
diff --git a/sysdeps/alpha/alphaev6/fpu/e_sqrtf.S b/sysdeps/alpha/alphaev6/fpu/e_sqrtf.S
index c8217e5..5681f3a 100644
--- a/sysdeps/alpha/alphaev6/fpu/e_sqrtf.S
+++ b/sysdeps/alpha/alphaev6/fpu/e_sqrtf.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,9 +33,9 @@ ENTRY(__ieee754_sqrtf)
 
 	.align 4
 #ifdef _IEEE_FP_INEXACT
-	sqrts/sui $f16, $f0
+	sqrts/suid $f16, $f0
 #else
-	sqrts/su $f16, $f0
+	sqrts/sud $f16, $f0
 #endif
 	ret
 	nop
diff --git a/sysdeps/alpha/fpu/math_private.h b/sysdeps/alpha/fpu/math_private.h
index eb2177d..4f270f7 100644
--- a/sysdeps/alpha/fpu/math_private.h
+++ b/sysdeps/alpha/fpu/math_private.h
@@ -18,4 +18,30 @@
 
 #include_next <math_private.h>
 
+#ifdef __alpha_fix__
+extern __always_inline double
+__ieee754_sqrt (double d)
+{
+  double ret;
+# ifdef _IEEE_FP_INEXACT
+  asm ("sqrtt/suid %1,%0" : "=f"(ret) : "f"(d));
+# else
+  asm ("sqrtt/sud %1,%0" : "=f"(ret) : "f"(d));
+# endif
+  return ret;
+}
+
+extern __always_inline float
+__ieee754_sqrtf (float d)
+{
+  float ret;
+# ifdef _IEEE_FP_INEXACT
+  asm ("sqrts/suid %1,%0" : "=f"(ret) : "f"(d));
+# else
+  asm ("sqrts/sud %1,%0" : "=f"(ret) : "f"(d));
+# endif
+  return ret;
+}
+#endif /* FIX */
+
 #endif /* ALPHA_MATH_PRIVATE_H */
-- 
1.7.7.6

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

* [PATCH 4/4] alpha: Remove __connect_internal alias
  2012-05-30 23:11 [PATCH 1/4] alpha: Use dynamic rounding with sqrt insn Richard Henderson
@ 2012-05-30 23:11 ` Richard Henderson
  2012-05-30 23:11 ` [PATCH 3/4] alpha: Avoid fgets plt entry Richard Henderson
  2012-05-30 23:11 ` [PATCH 2/4] alpha: Use dbl-64/wordsize-64 Richard Henderson
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2012-05-30 23:11 UTC (permalink / raw)
  To: libc-ports

---
 ChangeLog.alpha                             |    3 +++
 sysdeps/unix/sysv/linux/alpha/syscalls.list |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 246345a..bce8601 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,8 @@
 2012-05-30  Richard Henderson  <rth@twiddle.net>
 
+	* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove
+	__connect_internal alias.
+
 	* sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use
 	fgets_unlocked.
 
diff --git a/sysdeps/unix/sysv/linux/alpha/syscalls.list b/sysdeps/unix/sysv/linux/alpha/syscalls.list
index 809d82b..de36880 100644
--- a/sysdeps/unix/sysv/linux/alpha/syscalls.list
+++ b/sysdeps/unix/sysv/linux/alpha/syscalls.list
@@ -21,7 +21,7 @@ getpriority	-	getpriority	i:ii	__getpriority	getpriority
 # proper socket implementations:
 accept		-	accept		Ci:iBN	__libc_accept	__accept accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		Ci:ipi	__libc_connect	__connect_internal __connect connect
+connect		-	connect		Ci:ipi	__libc_connect	__connect connect
 getpeername	-	getpeername	i:ipp	__getpeername	getpeername
 getsockname	-	getsockname	i:ipp	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	__getsockopt	getsockopt
-- 
1.7.7.6

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

* [PATCH 2/4] alpha: Use dbl-64/wordsize-64
  2012-05-30 23:11 [PATCH 1/4] alpha: Use dynamic rounding with sqrt insn Richard Henderson
  2012-05-30 23:11 ` [PATCH 4/4] alpha: Remove __connect_internal alias Richard Henderson
  2012-05-30 23:11 ` [PATCH 3/4] alpha: Avoid fgets plt entry Richard Henderson
@ 2012-05-30 23:11 ` Richard Henderson
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2012-05-30 23:11 UTC (permalink / raw)
  To: libc-ports

---
 ChangeLog.alpha       |    2 ++
 sysdeps/alpha/Implies |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 44ffdc7..e327242 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,7 @@
 2012-05-30  Richard Henderson  <rth@twiddle.net>
 
+	* sysdeps/alpha/Implies: Include ieee754/dbl-64/wordsize-64.
+
 	* sysdeps/alpha/alphaev6/fpu/e_sqrt.S: Use dynamic rounding.
 	* sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: Likewise.
 	* sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): New.
diff --git a/sysdeps/alpha/Implies b/sysdeps/alpha/Implies
index 18c3590..d03783b 100644
--- a/sysdeps/alpha/Implies
+++ b/sysdeps/alpha/Implies
@@ -1,6 +1,7 @@
 wordsize-64
 # Alpha uses IEEE 754 single, double and quad precision floating point.
 ieee754/ldbl-128
+ieee754/dbl-64/wordsize-64
 ieee754/dbl-64
 ieee754/flt-32
 alpha/soft-fp
-- 
1.7.7.6

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

end of thread, other threads:[~2012-05-30 23:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-30 23:11 [PATCH 1/4] alpha: Use dynamic rounding with sqrt insn Richard Henderson
2012-05-30 23:11 ` [PATCH 4/4] alpha: Remove __connect_internal alias Richard Henderson
2012-05-30 23:11 ` [PATCH 3/4] alpha: Avoid fgets plt entry Richard Henderson
2012-05-30 23:11 ` [PATCH 2/4] alpha: Use dbl-64/wordsize-64 Richard Henderson

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).