Saturated arithmetics #142
ronaldvanmanen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Robert,
I've been using the Boost Safe Numerics library to implement safe color arithmetic. However, I've come to the conclusion that in some cases when adding two colors, for example, the operation should not overflow or underflow, but saturate instead. So I was wondering if this is something that can be done with the Boost Safe Numberics library today. Or that this may be feature that would be suitable to add to the Boost Safe Numerics library.
With kind regards,
Ronald van Manen
Beta Was this translation helpful? Give feedback.
All reactions