summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-10-25 23:48:28 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-25 20:51:44 +0000
commit83bac5ddc544070452b7d9906bf6b76d919e1ccf (patch)
tree8678c3482039d331f9f5ba060c6e188c7e9e9a21 /pp.c
parent7deadc5fc62e7c179bef75c78fd7a80d46bdb805 (diff)
downloadperl-83bac5ddc544070452b7d9906bf6b76d919e1ccf.tar.gz
remove small IVop redundancy
Message-ID: <20011025224827.M66471@plum.flirble.org> p4raw-id: //depot/perl@12657
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c57
1 files changed, 3 insertions, 54 deletions
diff --git a/pp.c b/pp.c
index c182e9a347..51b0f301ad 100644
--- a/pp.c
+++ b/pp.c
@@ -1494,11 +1494,6 @@ PP(pp_lt)
RETURN;
}
auv = SvUVX(TOPs);
- if (auv >= (UV) IV_MAX) {
- /* As (b) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_no);
- RETURN;
- }
SETs(boolSV(auv < (UV)biv));
RETURN;
}
@@ -1515,11 +1510,6 @@ PP(pp_lt)
}
buv = SvUVX(TOPs);
SP--;
- if (buv > (UV) IV_MAX) {
- /* As (a) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_yes);
- RETURN;
- }
SETs(boolSV((UV)aiv < buv));
RETURN;
}
@@ -1572,11 +1562,6 @@ PP(pp_gt)
RETURN;
}
auv = SvUVX(TOPs);
- if (auv > (UV) IV_MAX) {
- /* As (b) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_yes);
- RETURN;
- }
SETs(boolSV(auv > (UV)biv));
RETURN;
}
@@ -1593,11 +1578,6 @@ PP(pp_gt)
}
buv = SvUVX(TOPs);
SP--;
- if (buv >= (UV) IV_MAX) {
- /* As (a) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_no);
- RETURN;
- }
SETs(boolSV((UV)aiv > buv));
RETURN;
}
@@ -1650,11 +1630,6 @@ PP(pp_le)
RETURN;
}
auv = SvUVX(TOPs);
- if (auv > (UV) IV_MAX) {
- /* As (b) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_no);
- RETURN;
- }
SETs(boolSV(auv <= (UV)biv));
RETURN;
}
@@ -1671,11 +1646,6 @@ PP(pp_le)
}
buv = SvUVX(TOPs);
SP--;
- if (buv >= (UV) IV_MAX) {
- /* As (a) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_yes);
- RETURN;
- }
SETs(boolSV((UV)aiv <= buv));
RETURN;
}
@@ -1728,11 +1698,6 @@ PP(pp_ge)
RETURN;
}
auv = SvUVX(TOPs);
- if (auv >= (UV) IV_MAX) {
- /* As (b) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_yes);
- RETURN;
- }
SETs(boolSV(auv >= (UV)biv));
RETURN;
}
@@ -1749,11 +1714,6 @@ PP(pp_ge)
}
buv = SvUVX(TOPs);
SP--;
- if (buv > (UV) IV_MAX) {
- /* As (a) is an IV, it cannot be > IV_MAX */
- SETs(&PL_sv_no);
- RETURN;
- }
SETs(boolSV((UV)aiv >= buv));
RETURN;
}
@@ -1825,11 +1785,6 @@ PP(pp_ne)
}
uv = SvUVX(*(SP+1)); /* Do I want TOPp1s() ? */
}
- /* we know iv is >= 0 */
- if (uv > (UV) IV_MAX) {
- SETs(&PL_sv_yes);
- RETURN;
- }
SETs(boolSV((UV)iv != uv));
RETURN;
}
@@ -1891,10 +1846,7 @@ PP(pp_ncmp)
value = 1;
} else {
leftuv = SvUVX(TOPm1s);
- if (leftuv > (UV) IV_MAX) {
- /* As (b) is an IV, it cannot be > IV_MAX */
- value = 1;
- } else if (leftuv > (UV)rightiv) {
+ if (leftuv > (UV)rightiv) {
value = 1;
} else if (leftuv < (UV)rightiv) {
value = -1;
@@ -1912,12 +1864,9 @@ PP(pp_ncmp)
value = -1;
} else {
rightuv = SvUVX(TOPs);
- if (rightuv > (UV) IV_MAX) {
- /* As (a) is an IV, it cannot be > IV_MAX */
- value = -1;
- } else if (leftiv > (UV)rightuv) {
+ if ((UV)leftiv > rightuv) {
value = 1;
- } else if (leftiv < (UV)rightuv) {
+ } else if ((UV)leftiv < rightuv) {
value = -1;
} else {
value = 0;