This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.10-291-gef72d5f


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  ef72d5f1b95fe91b032de0ad1ee777d7cf4fb49f (commit)
       via  4b6bf3f205cd4908019e03ac097f847e63677c32 (commit)
       via  a1ed6c284a2ad191f13c640d34c2563b5c366267 (commit)
      from  a0e25a886a9128b280b4c05bc9c6dd12377ea868 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ef72d5f1b95fe91b032de0ad1ee777d7cf4fb49f

commit ef72d5f1b95fe91b032de0ad1ee777d7cf4fb49f
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Mon Aug 24 10:20:58 2009 -0700

    Optimize x86-64 signbit{,f} a bit.

diff --git a/ChangeLog b/ChangeLog
index 9f63c4d..45ff958 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-24  Ulrich Drepper  <drepper@redhat.com>
+
+	* sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
+	(__signbitf): Likewise.
+
 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
 
 	* posix/regcomp.c (parse_dup_op): Verify the expression is correctly
diff --git a/sysdeps/x86_64/fpu/bits/mathinline.h b/sysdeps/x86_64/fpu/bits/mathinline.h
index e8a919f..8d4850d 100644
--- a/sysdeps/x86_64/fpu/bits/mathinline.h
+++ b/sysdeps/x86_64/fpu/bits/mathinline.h
@@ -1,5 +1,5 @@
 /* Inline math functions for x86-64.
-   Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2007, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 2002.
 
@@ -35,14 +35,16 @@
 __MATH_INLINE int
 __NTH (__signbitf (float __x))
 {
-  __extension__ union { float __f; int __i; } __u = { __f: __x };
-  return __u.__i < 0;
+  int __m;
+  asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x));
+  return __m & 0x8;
 }
 __MATH_INLINE int
 __NTH (__signbit (double __x))
 {
-  __extension__ union { double __d; int __i[2]; } __u = { __d: __x };
-  return __u.__i[1] < 0;
+  int __m;
+  asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x));
+  return __m & 0x80;
 }
 __MATH_INLINE int
 __NTH (__signbitl (long double __x))

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4b6bf3f205cd4908019e03ac097f847e63677c32

commit 4b6bf3f205cd4908019e03ac097f847e63677c32
Merge: a1ed6c2 a0e25a8
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Sun Aug 23 20:43:53 2009 -0700

    Merge branch 'master' of ssh://sources.redhat.com/git/glibc


http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a1ed6c284a2ad191f13c640d34c2563b5c366267

commit a1ed6c284a2ad191f13c640d34c2563b5c366267
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Sun Aug 23 16:03:48 2009 -0700

    Extend last test case.

diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c
index 70a6c94..bd796c6 100644
--- a/posix/bug-regex29.c
+++ b/posix/bug-regex29.c
@@ -8,7 +8,14 @@ do_test (void)
   char buf[100];
   regerror(e, &r, buf, sizeof (buf));
   printf ("e = %d (%s)\n", e, buf);
-  return e != REG_BADBR;
+  int res = e != REG_BADBR;
+
+  e = regcomp(&r, "xy\\{4,5a\\}zabc", 0);
+  regerror(e, &r, buf, sizeof (buf));
+  printf ("e = %d (%s)\n", e, buf);
+  res |= e != REG_BADBR;
+
+  return res;
 }
 
 #define TEST_FUNCTION do_test ()

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                            |    5 +++++
 posix/bug-regex29.c                  |    9 ++++++++-
 sysdeps/x86_64/fpu/bits/mathinline.h |   12 +++++++-----
 3 files changed, 20 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]