diff options
| author | dam <dam@gudinoff> | 2023-07-06 21:49:36 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-07-06 21:49:36 +0100 |
| commit | c0727584e11ace38d50835b45d8a999c3568cf00 (patch) | |
| tree | 951c3b7a0d1ec8260ed1dbe414649fb5ad78579a /Integer_Saturating_Arithmetic.jai | |
| parent | 0932c04aa6930ab376be18a86ec1385d27271d75 (diff) | |
| download | task-time-tracker-c0727584e11ace38d50835b45d8a999c3568cf00.tar.zst task-time-tracker-c0727584e11ace38d50835b45d8a999c3568cf00.zip | |
Renamed output overflow to saturated.
Diffstat (limited to 'Integer_Saturating_Arithmetic.jai')
| -rw-r--r-- | Integer_Saturating_Arithmetic.jai | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Integer_Saturating_Arithmetic.jai b/Integer_Saturating_Arithmetic.jai index 915b1a4..74643e0 100644 --- a/Integer_Saturating_Arithmetic.jai +++ b/Integer_Saturating_Arithmetic.jai @@ -118,7 +118,7 @@ add :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, saturated: b } } -sub :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, overflow: bool #modify { #insert INTEGER_ARITHMETIC_TYPES_CHECK; } +sub :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, saturated: bool #modify { #insert INTEGER_ARITHMETIC_TYPES_CHECK; } { #if USE_GENERIC || CPU != .X64 { @@ -195,7 +195,7 @@ sub :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, overflow: bo } -mul :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, overflow: bool #modify { #insert INTEGER_ARITHMETIC_TYPES_CHECK; } +mul :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, saturated: bool #modify { #insert INTEGER_ARITHMETIC_TYPES_CHECK; } { #if USE_GENERIC || CPU != .X64 { |
