xs/abi.xs

filter: Statementstmt 100% 3 / 3 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 66.6% 6 / 9 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« include/sa/sa_xop.h ↑ Summary include/sa/sa_frozen.h »
1 # The C ABI's Perl-visible ends: the table's address, its version, and the
2 # selftest that walks it.
3  
4 MODULE = Shared::Arena PACKAGE = Shared::Arena
5  
6 # Unsigned, not IV: where the loader maps this object decides the sign bit, and
7 # a 32-bit perl above 0x7fffffff would hand back a negative from PTR2IV.
8 UV
9 _abi_ptr()
10 CODE:
11 2 ▶ RETVAL = PTR2UV(&SA_ABI);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = PTR2UV(&SA_ABI); 0 2 2
12 OUTPUT:
13 RETVAL
14  
15 IV
16 _abi_version()
17 CODE:
18 2 ▶ RETVAL = SA_ABI.abi_version;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = SA_ABI.abi_version; 0 2 2
19 OUTPUT:
20 RETVAL
21  
22 # 0 when every entry answered as its declaration says, otherwise the number of
23 # the check that did not - so a failure names itself rather than sending
24 # somebody to read the whole table.
25 IV
26 _abi_selftest()
27 CODE:
28 1 ▶ RETVAL = (IV)sa_abi_selftest();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = (IV)sa_abi_selftest(); 0 1 1
29 OUTPUT:
30 RETVAL
« include/sa/sa_xop.h ↑ Summary include/sa/sa_frozen.h »