[Bug 1894] missing a tick in _Timespec_To_ticks

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Aug 22 15:37:11 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1894

Sebastian Huber <sebastian.huber at embedded-brains.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastian.huber at embedded-br
                   |                            |ains.de

--- Comment #17 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-08-22 10:37:10 CDT ---
If you want to divide and round up you should use this:

    (a + b - 1) / b

This avoids one division and the branches.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list