summaryrefslogtreecommitdiff
path: root/opnames.h
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2011-04-18 14:05:35 -0600
committerFather Chrysostomos <sprout@cpan.org>2011-09-09 23:30:56 -0700
commit2b420b633b59fecd2561eeec600f17160862175b (patch)
treed88082f1bb7e3517d085feca3337cb9aa1ec1d08 /opnames.h
parent0b2be16900832ccd9de494ff538bf070d8623089 (diff)
downloadperl-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/opnames.h b/opnames.h
index 0bb9d816df..b55cda2b2d 100644
--- a/opnames.h
+++ b/opnames.h
@@ -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: */