File Coverage

hax/save_clearpadrange.c.inc
Criterion Covered Total %
statement 9 9 100.0
branch 1 2 50.0
condition n/a
subroutine n/a
pod n/a
total 10 11 90.9


line stmt bran cond sub pod time code
1             /* vi: set ft=c inde=: */
2              
3             #ifndef save_clearpadrange
4              
5             #define save_clearpadrange(padix, count) S_save_clearpadrange(aTHX_ padix, count)
6              
7 4           static void S_save_clearpadrange(pTHX_ PADOFFSET padix, U32 count)
8             {
9             /* Code stolen from PP(pp_padrange) in pp_hot.c */
10 4           const UV payload = (UV)(
11 4           (padix << (OPpPADRANGE_COUNTSHIFT + SAVE_TIGHT_SHIFT))
12 4           | (count << SAVE_TIGHT_SHIFT)
13 4           | SAVEt_CLEARPADRANGE);
14 4           dSS_ADD;
15 4           SS_ADD_UV(payload);
16 4 50         SS_ADD_END(1);
17 4           }
18              
19             #endif