aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Integer_Saturating_Arithmetic.jai4
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 {