RTEMS | Specify limits of CLOCK_MONOTONIC (uptime) (#5538)

Frank Kuehndel (@frank_k) gitlab at rtems.org
Tue Mar 31 13:24:23 UTC 2026




Frank Kuehndel commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5538#note_147608


Just a question:

I do not understand the "32-bit targets correctness issues". I would expect the 32 bit machines use a software implementation for 64 bit arithmetic (that comes with `gcc`). Adding a small number - such as `0x1` to `0x0000 0000 FFFF FFFF` should not cause any problems - esp. no correctness problems. The software can handle the 32 bit overflow easily with a second addition on the top 32 bits (assuming unsigned 64 bit numbers). What is the problem I do not see?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5538#note_147608
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260331/0eedf963/attachment-0001.htm>


More information about the bugs mailing list