Re:Myths about Integer Overflow in Rust
by Manishearth on Friday April 29, 2016 @06:05PM
(#11599070)
.saturating_add() exists. You can create a wrapper type around this and implement the Add/Sub/Mul traits.
[ Parent
| on HN ]
Does it have branchless codegen?
Re:Myths about Integer Overflow in Rust
by Manishearth on Friday April 29, 2016 @08:25PM
(#11599648)
Not right now (I'm surprised that's the case, there should be intrinsics for it), but that could change.