diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2011-04-18 14:05:35 -0600 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-09-09 23:30:56 -0700 |
commit | 2b420b633b59fecd2561eeec600f17160862175b (patch) | |
tree | d88082f1bb7e3517d085feca3337cb9aa1ec1d08 /opnames.h | |
parent | 0b2be16900832ccd9de494ff538bf070d8623089 (diff) | |
download | perl-2b420b633b59fecd2561eeec600f17160862175b.tar.gz |
implement OP_IS_NUMCOMPARE like other OP_IS macros
other macros are written by regen/opcode.pl into opnames.h
Generate OP_IS_NUMCOMPARE the same way, and get a micro-optimization.
Adds a new 'S<' operand type for the numeric comparison ops.
Needs make regen.
Diffstat (limited to 'opnames.h')
-rw-r--r-- | opnames.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -404,4 +404,7 @@ typedef enum opcode { #define OP_IS_FILETEST_ACCESS(op) \ ((op) >= OP_FTRREAD && (op) <= OP_FTEEXEC) +#define OP_IS_NUMCOMPARE(op) \ + ((op) >= OP_LT && (op) <= OP_I_NCMP) + /* ex: set ro: */ |