Author: ian
Date: Sat Mar 24 23:26:54 2018
New Revision: 331507
URL: https://svnweb.freebsd.org/changeset/base/331507

Log:
  MFC r330361:
  
  Correct a misplaced closing paren.  Does not affect the result, but does
  clarify (at least for me) that the multiplication happens before the shift.

Modified:
  stable/11/sys/sys/time.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/sys/time.h
==============================================================================
--- stable/11/sys/sys/time.h    Sat Mar 24 23:23:31 2018        (r331506)
+++ stable/11/sys/sys/time.h    Sat Mar 24 23:26:54 2018        (r331507)
@@ -173,7 +173,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
@@ -187,7 +187,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
@@ -201,7 +201,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);
 }
 
 /*-
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to