Summary

Topics: Saturating arithmetic

This was a somewhat slow week and only a few changes landed in Viua. Two new instructions are usable, which brings Viua a tiny bit closer to the goal of supporting wrapping, checked, and saturating arithmetic for signed and unsigned integers.


Saturating arithmetic

Signed saturating arithmetic increment (saturatingsincrement) and decrement (saturatingsdecrement) instructions were implemented. For now, these are the only ones that are usable for saturating arithmetic.

For a project implementing efficient saturating arithmetic in C++ look at Stefan Hamminga's saturating_types repository on GitHub.