compiler/saturate

Source   Edit  

Saturated arithmetic routines. XXX Make part of the stdlib?

Procs

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