J
joe
Wouldn't it be better if unsigned integers saturated upon overflow
instead of wrapping? I'm thinking from an overflow detection point of
view and using "overflow" to mean either overflow or underflow. Detection
could be done in a called function then if desired, if one is willing to
give up the maximum unsigned value for a given width integer in select
cases, which sounds very reasonable to me.
instead of wrapping? I'm thinking from an overflow detection point of
view and using "overflow" to mean either overflow or underflow. Detection
could be done in a called function then if desired, if one is willing to
give up the maximum unsigned value for a given width integer in select
cases, which sounds very reasonable to me.