diff options
author | David Mitchell <davem@iabyn.com> | 2017-08-04 16:40:15 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-08-04 16:45:02 +0100 |
commit | ce5a07d9cd0cec76841f293b1e6146a52b8da8de (patch) | |
tree | 60c07eca1ed9ee09902a527f8ce528d13ea2d67d /regen/opcodes | |
parent | 02960b52b40b494fa4f6e1be81db5f3459ab91a9 (diff) | |
download | perl-ce5a07d9cd0cec76841f293b1e6146a52b8da8de.tar.gz |
merge Perl_ck_cmp() and Perl_ck_eq()
I added ck_eq() recently; it's used for the EQ and NE ops, while ck_cmp()
is used for LT, GT, LE, GE.
This commit eliminates the ck_eq() function and makes ck_cmp() handle
EQ/NE too.
This will will make it easier to extend the index() == -1 optimisation
to handle index() >= 0 etc too.
At the moment there should be no functional differences.
Diffstat (limited to 'regen/opcodes')
-rw-r--r-- | regen/opcodes | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regen/opcodes b/regen/opcodes index 137a44f6b9..096c6fe823 100644 --- a/regen/opcodes +++ b/regen/opcodes @@ -144,10 +144,10 @@ le numeric le (<=) ck_cmp Iifs2 S S< i_le integer le (<=) ck_cmp ifs2 S S< ge numeric ge (>=) ck_cmp Iifs2 S S< i_ge integer ge (>=) ck_cmp ifs2 S S< -eq numeric eq (==) ck_eq Iifs2 S S< -i_eq integer eq (==) ck_eq ifs2 S S< -ne numeric ne (!=) ck_eq Iifs2 S S< -i_ne integer ne (!=) ck_eq ifs2 S S< +eq numeric eq (==) ck_cmp Iifs2 S S< +i_eq integer eq (==) ck_cmp ifs2 S S< +ne numeric ne (!=) ck_cmp Iifs2 S S< +i_ne integer ne (!=) ck_cmp ifs2 S S< ncmp numeric comparison (<=>) ck_null Iifst2 S S< i_ncmp integer comparison (<=>) ck_null ifst2 S S< |