summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2018-03-03 22:28:20 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-04 07:30:09 +0100
commit68b1d72e1d966064e15ad40faf8dfd2d99438ca3 (patch)
tree780f9dddc9fd3cf7326a0d919d32ff68b028798c
parent3266b2dd5e7036149413b96d558053b99df95c48 (diff)
downloadcygnal-68b1d72e1d966064e15ad40faf8dfd2d99438ca3.tar.gz
cygnal-68b1d72e1d966064e15ad40faf8dfd2d99438ca3.tar.bz2
cygnal-68b1d72e1d966064e15ad40faf8dfd2d99438ca3.zip
Correct a misplaced closing paren.
Does not affect the result, but does clarify (at least for me) that the multiplication happens before the shift.
-rw-r--r--newlib/libc/include/sys/time.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index 0dfdbfea4..e5023ae64 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);
}
/*-