public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Correct a misplaced closing paren.
@ 2018-12-04 9:03 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2018-12-04 9:03 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=68b1d72e1d966064e15ad40faf8dfd2d99438ca3
commit 68b1d72e1d966064e15ad40faf8dfd2d99438ca3
Author: ian <ian@FreeBSD.org>
Date: Sat Mar 3 22:28:20 2018 +0000
Correct a misplaced closing paren.
Does not affect the result, but does clarify (at least for me) that the
multiplication happens before the shift.
Diff:
---
newlib/libc/include/sys/time.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index 0dfdbfe..e5023ae 100644
--- a/newlib/libc/include/sys/time.h
+++ b/newlib/libc/include/sys/time.h
@@ -183,7 +183,7 @@ static __inline sbintime_t
nstosbt(int64_t _ns)
{
- return ((_ns * (((uint64_t)1 << 63) / 500000000) >> 32));
+ return ((_ns * (((uint64_t)1 << 63) / 500000000)) >> 32);
}
static __inline int64_t
@@ -197,7 +197,7 @@ static __inline sbintime_t
ustosbt(int64_t _us)
{
- return ((_us * (((uint64_t)1 << 63) / 500000) >> 32));
+ return ((_us * (((uint64_t)1 << 63) / 500000)) >> 32);
}
static __inline int64_t
@@ -211,7 +211,7 @@ static __inline sbintime_t
mstosbt(int64_t _ms)
{
- return ((_ms * (((uint64_t)1 << 63) / 500) >> 32));
+ return ((_ms * (((uint64_t)1 << 63) / 500)) >> 32);
}
/*-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-04 9:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 9:03 [newlib-cygwin] Correct a misplaced closing paren Sebastian Huber
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).