aboutsummaryrefslogtreecommitdiffstats
path: root/src/zdivmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zdivmod.c')
-rw-r--r--src/zdivmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zdivmod.c b/src/zdivmod.c
index def98b5..c77e34a 100644
--- a/src/zdivmod.c
+++ b/src/zdivmod.c
@@ -15,7 +15,7 @@ zdivmod(z_t a, z_t b, z_t c, z_t d)
sign = zsignum(c) * zsignum(d);
- if (!sign) {
+ if (EXPECT(!sign, 0)) {
if (zzero(c)) {
if (zzero(d)) {
FAILURE(EDOM); /* Indeterminate form: 0 divided by 0 */
@@ -27,7 +27,7 @@ zdivmod(z_t a, z_t b, z_t c, z_t d)
FAILURE(EDOM); /* Undefined form: Division by 0 */
}
return;
- } else if ((cmpmag = zcmpmag(c, d)) <= 0) {
+ } else if (EXPECT((cmpmag = zcmpmag(c, d)) <= 0, 0)) {
if (cmpmag == 0) {
zseti(a, sign);
SET_SIGNUM(b, 0);