public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Fix sense of a test in the static-linking version of ppc get_clockfreq
@ 2021-08-28  0:31 Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-28  0:31 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8d141ab782c4444a5e8f2e6eadfba7dea504f70d

commit 8d141ab782c4444a5e8f2e6eadfba7dea504f70d
Author: Stan Shebs <stanshebs@google.com>
Date:   Fri May 17 12:25:19 2019 -0700

    Fix sense of a test in the static-linking version of ppc get_clockfreq

Diff:
---
 sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
index 8821218ece..4e4c2a2262 100644
--- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
+++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
@@ -59,7 +59,7 @@ __get_clockfreq (void)
      timebase        : 33333333
      We search for this line and convert the number into an integer.  */
   int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY);
-  if (__glibc_likely (fd != -1))
+  if (__glibc_unlikely (fd == -1))
     return result;
 
   /* The timebase will be in the 1st 1024 bytes for systems with up


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

* [glibc/maskray/grte] Fix sense of a test in the static-linking version of ppc get_clockfreq
@ 2021-08-28  0:27 Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-28  0:27 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=448cc324e5709e12984ccbbdc42aff6a4a8e28a3

commit 448cc324e5709e12984ccbbdc42aff6a4a8e28a3
Author: Stan Shebs <stanshebs@google.com>
Date:   Fri May 17 12:25:19 2019 -0700

    Fix sense of a test in the static-linking version of ppc get_clockfreq

Diff:
---
 sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
index 8821218ece..4e4c2a2262 100644
--- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
+++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
@@ -59,7 +59,7 @@ __get_clockfreq (void)
      timebase        : 33333333
      We search for this line and convert the number into an integer.  */
   int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY);
-  if (__glibc_likely (fd != -1))
+  if (__glibc_unlikely (fd == -1))
     return result;
 
   /* The timebase will be in the 1st 1024 bytes for systems with up


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

* [glibc/maskray/grte] Fix sense of a test in the static-linking version of ppc get_clockfreq
@ 2021-08-27 23:50 Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-27 23:50 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d23acfc19e38f78f18c527b4937138afa5950e1f

commit d23acfc19e38f78f18c527b4937138afa5950e1f
Author: Stan Shebs <stanshebs@google.com>
Date:   Fri May 17 12:25:19 2019 -0700

    Fix sense of a test in the static-linking version of ppc get_clockfreq

Diff:
---
 sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
index 8821218ece..4e4c2a2262 100644
--- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
+++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
@@ -59,7 +59,7 @@ __get_clockfreq (void)
      timebase        : 33333333
      We search for this line and convert the number into an integer.  */
   int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY);
-  if (__glibc_likely (fd != -1))
+  if (__glibc_unlikely (fd == -1))
     return result;
 
   /* The timebase will be in the 1st 1024 bytes for systems with up


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

end of thread, other threads:[~2021-08-28  0:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:31 [glibc/maskray/grte] Fix sense of a test in the static-linking version of ppc get_clockfreq Fangrui Song
  -- strict thread matches above, loose matches on Subject: below --
2021-08-28  0:27 Fangrui Song
2021-08-27 23:50 Fangrui Song

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