public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: spinlock: remove useless get_ll call
@ 2018-11-26 16:59 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-11-26 16:59 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a094c5bafa02ac778c42ac3d85cd167fa44d88c9

commit a094c5bafa02ac778c42ac3d85cd167fa44d88c9
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Nov 26 17:25:47 2018 +0100

    Cygwin: spinlock: remove useless get_ll call
    
    LARGE_INTEGER has QuadPart anyway, no reason to compute the
    64 bit value from HighPart and LowPart.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/spinlock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/spinlock.h b/winsup/cygwin/spinlock.h
index f244355..d8ded12 100644
--- a/winsup/cygwin/spinlock.h
+++ b/winsup/cygwin/spinlock.h
@@ -30,7 +30,7 @@ class spinlock
   {
     LARGE_INTEGER t;
     if (NtQuerySystemTime (&t) == STATUS_SUCCESS)
-      return get_ll (t);
+      return t.QuadPart;
     return 0LL;
   }
 public:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-26 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-26 16:59 [newlib-cygwin] Cygwin: spinlock: remove useless get_ll call Corinna Vinschen

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