mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user