[newlib-cygwin] Cygwin: spinlock: remove useless get_ll call
Corinna Vinschen
corinna@sourceware.org
Mon Nov 26 16:59:00 GMT 2018
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:
More information about the Cygwin-cvs
mailing list