summaryrefslogtreecommitdiff
path: root/inline.h
Commit message (Collapse)AuthorAgeFilesLines
* Unify CvDEPTH for formats and subsFather Chrysostomos2012-09-111-3/+1
| | | | | | | | As Dave Mitchell pointed out, while putting the CvDEPTH field for for- mats in the SvCUR slot might save memory for formats, it slows down sub calls because CvDEPTH is used on subs in very hot code paths. Checking the SvTYPE to determine which field to use should not be necessary.
* Move S_CvDEPTHp from cv.h to inline.h; shrink macrosFather Chrysostomos2012-08-211-0/+11
| | | | | This allows us to use assert() inside S_CvDEPTHp, so we no longer need GCC and non-GCC variants of the macro that calls it.
* Static inline functions for SvPADTMP and SvPADSTALEFather Chrysostomos2012-08-211-0/+38
| | | | | This allows non-GCC compilers to have assertions and avoids repeating the macros.
* Use fast SvREFCNT_dec for non-GCCFather Chrysostomos2012-08-211-0/+12
|
* Use static inline functions for SvREFCNT_incFather Chrysostomos2012-08-211-0/+22
| | | | | | This avoids the need to repeat the macros in GCC and non-GCC versions. For non-GCC compilers capable of inlining, this should speed things up slightly, too, as PL_Sv is no longer needed.
* [perl #113718] Add inline.hFather Chrysostomos2012-08-211-0/+13
We can put static inline functions here, and they can depend on function prototypes and struct definitions from other header files.