summaryrefslogtreecommitdiff
path: root/pp.h
diff options
context:
space:
mode:
authorDan Sugalski <dan@sidhe.org>1999-08-10 09:34:56 -0700
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-10 22:39:11 +0000
commitd28f7c377ae191ca53d9157f124642cf323614a0 (patch)
tree6c1a399c1e250f23c69dd5af823906a52a0e01c7 /pp.h
parent6da84e39ed5bfdbbe350321e38b2730554d2576c (diff)
downloadperl-d28f7c377ae191ca53d9157f124642cf323614a0.tar.gz
Patches needed to get _60 building with
To: vmsperl@perl.org, perl5-porters@perl.org, sarathy@activestate.com, bailey@newman.upenn.edu threads on VMS Message-ID: <Pine.LNX.4.10.9908101631030.18266-100000@tuatha.sidhe.org> p4raw-id: //depot/cfgperl@3955
Diffstat (limited to 'pp.h')
-rw-r--r--pp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pp.h b/pp.h
index 0eac5a56f9..adf3cc9ed6 100644
--- a/pp.h
+++ b/pp.h
@@ -143,6 +143,18 @@
#define dPOPTOPiirl dPOPXiirl(TOP)
#define dPOPTOPiirl_ul dPOPXiirl_ul(TOP)
+#define TOPIOKbin (SvIOK(TOPs) && SvIOK(*(sp-1)))
+#define tryIVIVbin(op) \
+ if (TOPIOKbin) { \
+ dPOPTOPiirl_ul; \
+ NV result = (NV)left op (NV)right; \
+ if (result >= (NV)IV_MIN && result <= (NV)IV_MAX) \
+ SETi( left op right ); \
+ else \
+ SETn( result ); \
+ RETURN; \
+ }
+
#define RETPUSHYES RETURNX(PUSHs(&PL_sv_yes))
#define RETPUSHNO RETURNX(PUSHs(&PL_sv_no))
#define RETPUSHUNDEF RETURNX(PUSHs(&PL_sv_undef))