aboutsummaryrefslogtreecommitdiff
path: root/Math_Ext.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-06-26 12:22:00 +0100
committerdam <dam@gudinoff>2023-06-26 12:22:00 +0100
commit6db0cd24cf6dd2c7f8fd110302b6fe2479ef1243 (patch)
tree46924a27507709dc33da4a5160f52161604057d3 /Math_Ext.jai
parent2f758a4e5bcf6c125a5f81155675ccabbde8aeb5 (diff)
downloadtask-time-tracker-6db0cd24cf6dd2c7f8fd110302b6fe2479ef1243.tar.zst
task-time-tracker-6db0cd24cf6dd2c7f8fd110302b6fe2479ef1243.zip
Improved test program.
Diffstat (limited to 'Math_Ext.jai')
-rw-r--r--Math_Ext.jai2
1 files changed, 1 insertions, 1 deletions
diff --git a/Math_Ext.jai b/Math_Ext.jai
index ad41c2f..8f7531b 100644
--- a/Math_Ext.jai
+++ b/Math_Ext.jai
@@ -380,7 +380,7 @@ div :: (x: $Tx, y: $Ty, $USE_GENERIC: bool = false) -> result: $Tr, remainder: T
mov limit: gpr, LIMIT;
mov result, x;
cmovz result, limit; // If ZF: limit dividend to MIN-1.
- cbw result;
+ cbw result; // Sign-extension.
setz saturated;
idiv.SIZE result, y;