lib/PDL/IO/Misc.xs

filter: Statementstmt 54.1% 13 / 24 Branchbran 30.7% 8 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 42.0% 21 / 50 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« lib/PDL/Compression-pp-rice_expand.c ↑ Summary lib/PDL/Image2D.xs »
1  
2 #line 453 "lib/PDL/PP.pm"
3 /*
4 * THIS FILE WAS GENERATED BY PDL::PP from lib/PDL/IO/Misc.pd! Do not modify!
5 */
6  
7 #define PDL_FREE_CODE(trans, destroy, comp_free_code, ntpriv_free_code) \
8 if (destroy) { \
9 comp_free_code \
10 } \
11 if ((trans)->dims_redone) { \
12 ntpriv_free_code \
13 }
14  
15 #include "EXTERN.h"
16 #include "perl.h"
17 #include "XSUB.h"
18 #include "pdl.h"
19 #include "pdlcore.h"
20 #define PDL PDL_IO_Misc
21 extern Core* PDL; /* Structure hold core C functions */
22 #line 23 "lib/PDL/IO/Misc.xs"
23 pdl_error pdl_run_bswap2(pdl *x);
24 pdl_error pdl_run_bswap4(pdl *x);
25 pdl_error pdl_run_bswap8(pdl *x);
26 pdl_error pdl_run_bswap12(pdl *x);
27 pdl_error pdl_run_bswap16(pdl *x);
28 pdl_error pdl_run_bswap24(pdl *x);
29 pdl_error pdl_run_bswap32(pdl *x);
30 pdl_error pdl_run_rasc(pdl *nums,pdl *ierr,PerlIO *fp,IV num);
31  
32 #line 449 "lib/PDL/PP.pm"
33 #include "pdlperl.h"
34 #line 35 "lib/PDL/IO/Misc.xs"
35  
36 Core* PDL = NULL; /* Structure hold core C functions */
37  
38 MODULE = PDL::IO::Misc PACKAGE = PDL PREFIX=pdl_run_
39  
40 PROTOTYPES: DISABLE
41  
42  
43 void
44 pdl_run_bswap2(x)
45 pdl *x
46 PPCODE:
47 53 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap2: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap2: x->inplace but not supported"); 0 53 53
48 53 PDL->barf_if_error(pdl_run_bswap2(x));
49  
50 void
51 pdl_run_bswap4(x)
52 pdl *x
53 PPCODE:
54 5830 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap4: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap4: x->inplace but not supported"); 0 5830 5830
55 5830 PDL->barf_if_error(pdl_run_bswap4(x));
56  
57 void
58 pdl_run_bswap8(x)
59 pdl *x
60 PPCODE:
61 64 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap8: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap8: x->inplace but not supported"); 0 64 64
62 64 PDL->barf_if_error(pdl_run_bswap8(x));
63  
64 void
65 pdl_run_bswap12(x)
66 pdl *x
67 PPCODE:
68 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap12: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap12: x->inplace but not supported"); 0 0 0
69 0 PDL->barf_if_error(pdl_run_bswap12(x));
70  
71 void
72 pdl_run_bswap16(x)
73 pdl *x
74 PPCODE:
75 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap16: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap16: x->inplace but not supported"); 0 0 0
76 0 PDL->barf_if_error(pdl_run_bswap16(x));
77  
78 void
79 pdl_run_bswap24(x)
80 pdl *x
81 PPCODE:
82 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap24: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap24: x->inplace but not supported"); 0 0 0
83 0 PDL->barf_if_error(pdl_run_bswap24(x));
84  
85 void
86 pdl_run_bswap32(x)
87 pdl *x
88 PPCODE:
89 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap32: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("bswap32: x->inplace but not supported"); 0 0 0
90 0 PDL->barf_if_error(pdl_run_bswap32(x));
91  
92 void
93 _rasc_int(nums,ierr,fp,num)
94 pdl *nums
95 pdl *ierr
96 PerlIO *fp
97 IV num
98 CODE:
99 2 PDL->barf_if_error(pdl_run_rasc(nums,ierr,fp,num));
100  
101  
102 #line 483 "lib/PDL/PP.pm"
103 BOOT:
104 /* Get pointer to structure of core shared C routines */
105 /* make sure PDL::Core is loaded */
106 #line 107 "lib/PDL/IO/Misc.xs"
107 22 perl_require_pv ("PDL/Core.pm"); /* make sure PDL::Core is loaded */
108 #ifndef aTHX_
109 #define aTHX_
110 #endif
111 22 ▶ if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV));
Branch: 3 branches
BranchTrueFalseTotal
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 22 0 22
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 0 22 22
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 0 0 0
112 22 SV* CoreSV = perl_get_sv("PDL::SHARE",FALSE); /* var with core structure */
113 22 ▶ if (!CoreSV)
Branch: 1 branch
BranchTrueFalseTotal
if (!CoreSV) 0 22 22
114 0 Perl_croak(aTHX_ "We require the PDL::Core module, which was not found");
115 22 ▶ if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */
Branch: 1 branch
BranchTrueFalseTotal
if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ 0 22 22
116 0 Perl_croak(aTHX_ "Got NULL pointer for PDL");
117 22 ▶ if (PDL->Version != PDL_CORE_VERSION)
Branch: 1 branch
BranchTrueFalseTotal
if (PDL->Version != PDL_CORE_VERSION) 0 22 22
118 0 Perl_croak(aTHX_ "[PDL->Version: %ld PDL_CORE_VERSION: %ld XS_VERSION: %s] PDL::IO::Misc needs to be recompiled against the newly installed PDL", (long int)PDL->Version, (long int)PDL_CORE_VERSION, XS_VERSION);
« lib/PDL/Compression-pp-rice_expand.c ↑ Summary lib/PDL/Image2D.xs »