2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com>

PR 1468/cpukit
	* score/src/timespecdividebyinteger.c: Rework statement to ensure
	64-bit multiplication is used.
This commit is contained in:
Joel Sherrill
2009-11-10 23:29:57 +00:00
parent a91e372e9a
commit 48f3027201
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1468/cpukit
* score/src/timespecdividebyinteger.c: Rework statement to ensure
64-bit multiplication is used.
2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com> 2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1462/cpukit PR 1462/cpukit

View File

@@ -34,7 +34,8 @@ void _Timespec_Divide_by_integer(
* For math simplicity just convert the timespec to nanoseconds * For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer. * in a 64-bit integer.
*/ */
t = time->tv_sec * TOD_NANOSECONDS_PER_SECOND; t = time->tv_sec;
t *= TOD_NANOSECONDS_PER_SECOND;
t += time->tv_nsec; t += time->tv_nsec;
/* /*