RdGen.xs.inc

filter: Statementstmt 93.7% 15 / 16 Branchbran 56.2% 9 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 75.0% 24 / 32 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« _stats.c ↑ Summary _mt.c »
1  
2 MODULE = Statistics::CaseResampling PACKAGE = Statistics::CaseResampling::RdGen PREFIX=mt_
3 PROTOTYPES: DISABLE
4  
5 int
6 mt_CLONE_SKIP(...)
7 CODE:
8 0 ▶ RETVAL = 1;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = 1; 0 0 0
9 OUTPUT:
10 RETVAL
11  
12 Statistics::CaseResampling::RdGen
13 mt_setup(seed)
14 U32 seed
15 CODE:
16 3 RETVAL = mt_setup(seed);
17 OUTPUT:
18 RETVAL
19  
20 Statistics::CaseResampling::RdGen
21 mt_setup_array( array, ... )
22 CODE:
23 15 U32 * array = U32ArrayPtr(aTHX_ items);
24 15 U32 ix_array = 0;
25 80 ▶ while (items--) {
Branch: 1 branch
BranchTrueFalseTotal
while (items--) { 65 15 80
26 65 array[ix_array] = (U32)SvUV(ST(ix_array));
27 65 ix_array++;
28 }
29 15 RETVAL = mt_setup_array( (uint32_t*)array, ix_array );
30 OUTPUT:
31 RETVAL
32  
33 void
34 mt__os_entropy(nwords)
35 I32 nwords
36 PREINIT:
37 uint32_t buf[64];
38 I32 i;
39 PPCODE:
40 14 ▶ if (nwords >= 1 && nwords <= 64 && mt_os_entropy(buf, nwords)) {
Branch: 3 branches
BranchTrueFalseTotal
if (nwords >= 1 && nwords <= 64 && mt_os_entropy(buf, nwords)) { 14 0 14
if (nwords >= 1 && nwords <= 64 && mt_os_entropy(buf, nwords)) { 14 0 14
if (nwords >= 1 && nwords <= 64 && mt_os_entropy(buf, nwords)) { 14 0 14
41 14 ▶ EXTEND(SP, nwords);
Branch: 2 branches
BranchTrueFalseTotal
EXTEND(SP, nwords); 14 0 14
EXTEND(SP, nwords); 0 14 14
42 70 ▶ for (i = 0; i < nwords; ++i) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < nwords; ++i) { 56 14 70
43 56 mPUSHu((UV)buf[i]);
44 }
45 }
46  
47 void
48 mt__mark_auto_seeded(self, pid)
49 Statistics::CaseResampling::RdGen self
50 IV pid
51 CODE:
52 10 self->auto_seeded = 1;
53 10 self->pid = (long)pid;
54  
55 void
56 mt_DESTROY(self)
57 Statistics::CaseResampling::RdGen self
58 CODE:
59 18 mt_free(self);
60  
61 double
62 mt_genrand(self)
63 Statistics::CaseResampling::RdGen self
64 CODE:
65 7 RETVAL = mt_genrand(self);
66 OUTPUT:
67 RETVAL
68  
« _stats.c ↑ Summary _mt.c »