summaryrefslogtreecommitdiff
path: root/inc/ex.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-10 21:15:24 -0400
committerbd <bdunahu@operationnull.com>2025-05-10 21:15:24 -0400
commit714622080d510de1591de2c689d8bd319b54f432 (patch)
tree83e13a01d7d25afb847839a3926f1ee673e69c63 /inc/ex.h
parent727afe4ffac0f193696c99234a2ade3a02f73157 (diff)
Fix overflow/underflow conditions in vector ops
Diffstat (limited to 'inc/ex.h')
-rw-r--r--inc/ex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/ex.h b/inc/ex.h
index 0e235cb..ff4041b 100644
--- a/inc/ex.h
+++ b/inc/ex.h
@@ -103,8 +103,9 @@ class EX : public Stage
* @param the numerator
* @param the denominator
* @param if the modulo operator should instead be used
+ * @return if the operation overflowed
*/
- void handle_divide(signed int &s1, signed int s2, bool is_mod);
+ bool handle_divide(signed int &s1, signed int s2, bool is_mod);
};
#endif /* EX_H_INCLUDED */