From 714622080d510de1591de2c689d8bd319b54f432 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 10 May 2025 21:15:24 -0400 Subject: Fix overflow/underflow conditions in vector ops --- inc/ex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/ex.h') 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 */ -- cgit v1.2.3