File Coverage

RdGen.xs.inc
Criterion Covered Total %
statement 2 9 22.2
branch 0 2 0.0
condition n/a
subroutine n/a
pod n/a
total 2 11 18.1


line stmt bran cond sub pod time code
1              
2             MODULE = Statistics::CaseResampling PACKAGE = Statistics::CaseResampling::RdGen PREFIX=mt_
3             PROTOTYPES: DISABLE
4              
5             Statistics::CaseResampling::RdGen
6             mt_setup(seed)
7             U32 seed
8             CODE:
9 2           RETVAL = mt_setup(seed);
10             OUTPUT:
11             RETVAL
12              
13             Statistics::CaseResampling::RdGen
14             mt_setup_array( array, ... )
15             CODE:
16 0           U32 * array = U32ArrayPtr(aTHX_ items);
17 0           U32 ix_array = 0;
18 0 0         while (items--) {
19 0           array[ix_array] = (U32)SvIV(ST(ix_array));
20 0           ix_array++;
21             }
22 0           RETVAL = mt_setup_array( (uint32_t*)array, ix_array );
23             OUTPUT:
24             RETVAL
25              
26             void
27             mt_DESTROY(self)
28             Statistics::CaseResampling::RdGen self
29             CODE:
30 2           mt_free(self);
31              
32             double
33             mt_genrand(self)
34             Statistics::CaseResampling::RdGen self
35             CODE:
36 0           RETVAL = mt_genrand(self);
37             OUTPUT:
38             RETVAL
39