saturate

Saturated arithmetic routines. XXX Make part of the stdlib?

Procs

proc `|+|`(a, b: BiggestInt): BiggestInt {...}{.raises: [], tags: [].}
saturated addition. Source Edit
proc `|-|`(a, b: BiggestInt): BiggestInt {...}{.raises: [], tags: [].}
Source Edit
proc `|abs|`(a: BiggestInt): BiggestInt {...}{.raises: [], tags: [].}
Source Edit
proc `|div|`(a, b: BiggestInt): BiggestInt {...}{.raises: [], tags: [].}
Source Edit
proc `|mod|`(a, b: BiggestInt): BiggestInt {...}{.raises: [], tags: [].}
Source Edit
proc `|*|`(a, b: BiggestInt): BiggestInt {...}{.raises: [], tags: [].}
Source Edit

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/saturate.html