This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin 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]

[newlib-cygwin] Cygwin: spinlock: remove useless get_ll call


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:


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