develooper Front page | perl.perl5.porters | Postings from December 2000

SvIVX vs SvIVx vs SvIV Re: pp_add -> pp_i_add efficiency hack?

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
December 5, 2000 13:30
Subject:
SvIVX vs SvIVx vs SvIV Re: pp_add -> pp_i_add efficiency hack?
Message ID:
20001205213010.A8673@plum.flirble.org
Jarkko (or anyone else who might know)

why did you use SvIVx rather than SvIV or SvIVX in your pp_add implementation?
What's the difference between these 3 (and SvIVXx)?

Would it be possible to add

--- ../bleadperl-NV/pp.h        Sat Sep  2 17:52:58 2000
+++ pp.h        Mon Dec  4 19:29:51 2000
@@ -126,6 +126,7 @@
 #endif
 
 #define TOPs           (*sp)
+#define TOPm1s         (*(sp-1))
 #define TOPp           (SvPV(TOPs, PL_na))             /* deprecated */
 #define TOPpx          (SvPV(TOPs, n_a))
 #define TOPn           (SvNV(TOPs))

to the bleadperl as it would make things easier for getting 64 bit
preservation without (I'm pretty sure) breaking anything for anyone
else?

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About