From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125771 invoked by alias); 4 Dec 2018 09:03:25 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 125730 invoked by uid 10080); 4 Dec 2018 09:03:20 -0000 Date: Tue, 04 Dec 2018 09:03:00 -0000 Message-ID: <20181204090320.125728.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Correct a misplaced closing paren. X-Act-Checkin: newlib-cygwin X-Git-Author: ian X-Git-Refname: refs/heads/master X-Git-Oldrev: 3266b2dd5e7036149413b96d558053b99df95c48 X-Git-Newrev: 68b1d72e1d966064e15ad40faf8dfd2d99438ca3 X-SW-Source: 2018-q4/txt/msg00036.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=68b1d72e1d966064e15ad40faf8dfd2d99438ca3 commit 68b1d72e1d966064e15ad40faf8dfd2d99438ca3 Author: ian 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); } /*-