I cleaned up the code for my integer replacement libraries and you are ready to go. Give it a try.
see also:
https://github.com/PeterSommerlad/talks_public/tree/main/MeetingCPP/2025
Saturation arithmetic:
https://github.com/PeterSommerlad/PSsSATIN
Overflow detection:
https://github.com/PeterSommerlad/PSsODIN
Modulo arithmetic (wrap around):
https://github.com/PeterSommerlad/PSsMOIN
