mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 13:34:15 +00:00
MulSaturated and AddSaturated are now implemented for u128, i128
SubSaturated is now implemented for Dec even if it's a little strange to
saturate at a decimal value:
```
» Num.subSaturated -170_141_183_460_469_231_731dec 1
-170141183460469231731.687303715884105728 : Dec
```
I decided to rm the `build_num_{mul,add}_saturated` methods because
they don't require any asm-specifics. They either call out to bitcode, or
use the non-saturated version for floats.
|
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||