lib/PDL/Ops.xs

filter: Statementstmt 83.9% 236 / 281 Branchbran 45.3% 718 / 1582 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 51.2% 954 / 1863 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« lib/PDL/Slices.xs ↑ Summary lib/PDL/Primitive-pp-vsearch_bin_exclusive.c »
1  
2 #line 453 "lib/PDL/PP.pm"
3 /*
4 * THIS FILE WAS GENERATED BY PDL::PP from lib/PDL/Ops.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_Ops
21 extern Core* PDL; /* Structure hold core C functions */
22 #line 23 "lib/PDL/Ops.xs"
23  
24 #include <tgmath.h>
25  
26 #define MOD(X,N) (((N) == 0) ? 0 : ( (X) - (PDL_ABS(N)) * ((long long)((X)/(PDL_ABS(N))) + ( ( ((N) * ((long long)((X)/(N)))) != (X) ) ? ( ( ((N)<0) ? 1 : 0 ) + ( (((X)<0) ? -1 : 0))) : 0 ))))
27 #define BU_MOD(X,N)(((N) == 0) ? 0 : ( (X)-(N)*((uint64_t)((X)/(N))) ))
28 #define SPACE(A,B) ( ((A)<(B)) ? -1 : ((A)!=(B)) )
29  
30 #line 84 "lib/PDL/Ops.pd"
31 #define PDL_BADVAL_WARN_X(datatype, ctype, ppsym, ...) \
32 bad_anyval.type = datatype; bad_anyval.value.ppsym = PDL->bvals.ppsym;
33 #define PDL_BADVAL_WARN(var) \
34 { \
35 PDL_Anyval bad_anyval = { PDL_INVALID, {0} }; \
36 if (!(var->has_badvalue && var->badvalue.type != var->datatype)) { \
37 if (var->has_badvalue) \
38 bad_anyval = var->badvalue; \
39 else { \
40 PDL_GENERICSWITCH(PDL_TYPELIST_ALL, var->datatype, PDL_BADVAL_WARN_X, ) \
41 } \
42 } \
43 if (bad_anyval.type < 0) \
44 barf("Error getting badvalue, type=%d", bad_anyval.type); \
45 complex double bad_c; \
46 ANYVAL_TO_CTYPE(bad_c, complex double, bad_anyval); \
47 if( bad_c == 0 || bad_c == 1 ) \
48 warn(#var " badvalue is set to 0 or 1. This will cause data loss when using badvalues for comparison operators."); \
49 }
50 #line 51 "lib/PDL/Ops.xs"
51 pdl_error pdl_run_plus(pdl *a,pdl *b,pdl *c);
52 pdl_error pdl_run_mult(pdl *a,pdl *b,pdl *c);
53 pdl_error pdl_run_minus(pdl *a,pdl *b,pdl *c);
54 pdl_error pdl_run_divide(pdl *a,pdl *b,pdl *c);
55 pdl_error pdl_run_gt(pdl *a,pdl *b,pdl *c);
56 pdl_error pdl_run_lt(pdl *a,pdl *b,pdl *c);
57 pdl_error pdl_run_le(pdl *a,pdl *b,pdl *c);
58 pdl_error pdl_run_ge(pdl *a,pdl *b,pdl *c);
59 pdl_error pdl_run_eq(pdl *a,pdl *b,pdl *c);
60 pdl_error pdl_run_ne(pdl *a,pdl *b,pdl *c);
61 pdl_error pdl_run_shiftleft(pdl *a,pdl *b,pdl *c);
62 pdl_error pdl_run_shiftright(pdl *a,pdl *b,pdl *c);
63 pdl_error pdl_run_or2(pdl *a,pdl *b,pdl *c);
64 pdl_error pdl_run_and2(pdl *a,pdl *b,pdl *c);
65 pdl_error pdl_run_xor(pdl *a,pdl *b,pdl *c);
66 pdl_error pdl_run_power(pdl *a,pdl *b,pdl *c);
67 pdl_error pdl_run_atan2(pdl *a,pdl *b,pdl *c);
68 pdl_error pdl_run_modulo(pdl *a,pdl *b,pdl *c);
69 pdl_error pdl_run_spaceship(pdl *a,pdl *b,pdl *c);
70 pdl_error pdl_run_bitnot(pdl *a,pdl *b);
71 pdl_error pdl_run_sqrt(pdl *a,pdl *b);
72 pdl_error pdl_run_sin(pdl *a,pdl *b);
73 pdl_error pdl_run_cos(pdl *a,pdl *b);
74 pdl_error pdl_run_not(pdl *a,pdl *b);
75 pdl_error pdl_run_exp(pdl *a,pdl *b);
76 pdl_error pdl_run_log(pdl *a,pdl *b);
77 pdl_error pdl_run_re(pdl *complexv,pdl *b);
78 pdl_error pdl_run_im(pdl *complexv,pdl *b);
79 pdl_error pdl_run__cabs(pdl *complexv,pdl *b);
80 pdl_error pdl_run__rabs(pdl *a,pdl *b);
81 pdl_error pdl_run_log10(pdl *a,pdl *b);
82 pdl_error pdl_run_assgn(pdl *a,pdl *b);
83 pdl_error pdl_run_carg(pdl *complexv,pdl *b);
84 pdl_error pdl_run_conj(pdl *complexv,pdl *b);
85 pdl_error pdl_run_czip(pdl *r,pdl *i,pdl *c);
86 pdl_error pdl_run_ipow(pdl *a,pdl *b,pdl *ans);
87 pdl_error pdl_run_abs2(pdl *a,pdl *b);
88 pdl_error pdl_run_r2C(pdl *r,pdl *c);
89 pdl_error pdl_run_i2C(pdl *i,pdl *c);
90  
91 #line 449 "lib/PDL/PP.pm"
92 #include "pdlperl.h"
93 #line 94 "lib/PDL/Ops.xs"
94  
95 Core* PDL = NULL; /* Structure hold core C functions */
96  
97 MODULE = PDL::Ops PACKAGE = PDL PREFIX=pdl_run_
98  
99 PROTOTYPES: DISABLE
100  
101  
102 void
103 pdl_run_plus(a, b, c=c, swap=swap)
104 SV *c_SV = (items == 4) ? ST(2) : NULL;
105 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
106 PREINIT:
107 1046 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1046 0 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 7 1039 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 7 0 7
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1046 0 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1046 0 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1046 0 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1046 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1046 0 1046
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1046 1046
108 INPUT:
109 pdl *a
110 pdl *b
111 pdl *c=NO_INIT
112 int swap=NO_INIT
113 PPCODE:
114 1046 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 321 725 1046
115 1046 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 136 910 1046
116 136 pdl *tmp = a;
117 136 a = b;
118 136 b = tmp;
119 }
120 1046 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 321 725 1046
PDL_XS_INPLACE(a, c) 0 321 321
PDL_XS_INPLACE(a, c) 4 721 725
PDL_XS_INPLACE(a, c) 0 721 721
121 1046 PDL->barf_if_error(pdl_run_plus(a,b,c));
122 1043 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 1039 4 1043
PDL_XS_RETURN(ST(0) = c_SV) 1039 0 1039
PDL_XS_RETURN(ST(0) = c_SV) 1039 0 1039
PDL_XS_RETURN(ST(0) = c_SV) 0 1039 1039
PDL_XS_RETURN(ST(0) = c_SV) 0 4 4
123  
124 void
125 pdl_run_mult(a, b, c=c, swap=swap)
126 SV *c_SV = (items == 4) ? ST(2) : NULL;
127 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
128 PREINIT:
129 1841 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1841 0 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1841 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1841 0 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1841 0 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1841 0 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1841 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1841 0 1841
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1841 1841
130 INPUT:
131 pdl *a
132 pdl *b
133 pdl *c=NO_INIT
134 int swap=NO_INIT
135 PPCODE:
136 1841 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 232 1609 1841
137 1841 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 385 1456 1841
138 385 pdl *tmp = a;
139 385 a = b;
140 385 b = tmp;
141 }
142 1841 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 232 1609 1841
PDL_XS_INPLACE(a, c) 0 232 232
PDL_XS_INPLACE(a, c) 0 1609 1609
PDL_XS_INPLACE(a, c) 0 1609 1609
143 1841 PDL->barf_if_error(pdl_run_mult(a,b,c));
144 1841 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 1841 0 1841
PDL_XS_RETURN(ST(0) = c_SV) 1841 0 1841
PDL_XS_RETURN(ST(0) = c_SV) 1841 0 1841
PDL_XS_RETURN(ST(0) = c_SV) 0 1841 1841
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
145  
146 void
147 pdl_run_minus(a, b, c=c, swap=swap)
148 SV *c_SV = (items == 4) ? ST(2) : NULL;
149 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
150 PREINIT:
151 1041 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1041 0 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1041 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1041 0 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1041 0 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1041 0 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1041 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1041 0 1041
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 1041 1041
152 INPUT:
153 pdl *a
154 pdl *b
155 pdl *c=NO_INIT
156 int swap=NO_INIT
157 PPCODE:
158 1041 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 373 668 1041
159 1041 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 133 908 1041
160 133 pdl *tmp = a;
161 133 a = b;
162 133 b = tmp;
163 }
164 1041 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 369 672 1041
PDL_XS_INPLACE(a, c) 0 369 369
PDL_XS_INPLACE(a, c) 4 668 672
PDL_XS_INPLACE(a, c) 0 668 668
165 1041 PDL->barf_if_error(pdl_run_minus(a,b,c));
166 1041 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 1037 4 1041
PDL_XS_RETURN(ST(0) = c_SV) 1037 0 1037
PDL_XS_RETURN(ST(0) = c_SV) 1037 0 1037
PDL_XS_RETURN(ST(0) = c_SV) 0 1037 1037
PDL_XS_RETURN(ST(0) = c_SV) 0 4 4
167  
168 void
169 pdl_run_divide(a, b, c=c, swap=swap)
170 SV *c_SV = (items == 4) ? ST(2) : NULL;
171 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
172 PREINIT:
173 741 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 741 0 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 741 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 741 0 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 741 0 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 741 0 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 741 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 741 0 741
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 741 741
174 INPUT:
175 pdl *a
176 pdl *b
177 pdl *c=NO_INIT
178 int swap=NO_INIT
179 PPCODE:
180 741 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 469 272 741
181 741 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 36 705 741
182 36 pdl *tmp = a;
183 36 a = b;
184 36 b = tmp;
185 }
186 741 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 469 272 741
PDL_XS_INPLACE(a, c) 0 469 469
PDL_XS_INPLACE(a, c) 0 272 272
PDL_XS_INPLACE(a, c) 0 272 272
187 741 PDL->barf_if_error(pdl_run_divide(a,b,c));
188 741 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 741 0 741
PDL_XS_RETURN(ST(0) = c_SV) 741 0 741
PDL_XS_RETURN(ST(0) = c_SV) 741 0 741
PDL_XS_RETURN(ST(0) = c_SV) 0 741 741
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
189  
190 void
191 pdl_run_gt(a, b, c=c, swap=swap)
192 SV *c_SV = (items == 4) ? ST(2) : NULL;
193 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
194 PREINIT:
195 417 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 417 0 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 417 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 417 0 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 417 0 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 417 0 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 417 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 417 0 417
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 417 417
196 INPUT:
197 pdl *a
198 pdl *b
199 pdl *c=NO_INIT
200 int swap=NO_INIT
201 PPCODE:
202 417 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 417 417
203 417 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 2 415 417
204 2 pdl *tmp = a;
205 2 a = b;
206 2 b = tmp;
207 }
208 417 ▶ if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF))
Branch: 2 branches
BranchTrueFalseTotal
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 416 1 417
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 0 416 416
209 1 barf("Can't compare complex numbers");
210 416 ▶ PDL_BADVAL_WARN(a)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(a) 13 403 416
PDL_BADVAL_WARN(a) 13 0 13
PDL_BADVAL_WARN(a) 13 403 416
PDL_BADVAL_WARN(a) 0 416 416
PDL_BADVAL_WARN(a) 414 2 416
PDL_BADVAL_WARN(a) 1 413 414
211 415 ▶ PDL_BADVAL_WARN(b)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(b) 0 415 415
PDL_BADVAL_WARN(b) 0 0 0
PDL_BADVAL_WARN(b) 0 415 415
PDL_BADVAL_WARN(b) 0 415 415
PDL_BADVAL_WARN(b) 415 0 415
PDL_BADVAL_WARN(b) 0 415 415
212 415 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 415 415
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 415 415
PDL_XS_INPLACE(a, c) 0 415 415
213 415 PDL->barf_if_error(pdl_run_gt(a,b,c));
214 415 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 415 0 415
PDL_XS_RETURN(ST(0) = c_SV) 415 0 415
PDL_XS_RETURN(ST(0) = c_SV) 415 0 415
PDL_XS_RETURN(ST(0) = c_SV) 0 415 415
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
215  
216 void
217 pdl_run_lt(a, b, c=c, swap=swap)
218 SV *c_SV = (items == 4) ? ST(2) : NULL;
219 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
220 PREINIT:
221 354 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 354 0 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 354 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 354 0 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 354 0 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 354 0 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 354 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 354 0 354
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 354 354
222 INPUT:
223 pdl *a
224 pdl *b
225 pdl *c=NO_INIT
226 int swap=NO_INIT
227 PPCODE:
228 354 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 354 354
229 354 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 354 354
230 0 pdl *tmp = a;
231 0 a = b;
232 0 b = tmp;
233 }
234 354 ▶ if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF))
Branch: 2 branches
BranchTrueFalseTotal
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 353 1 354
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 0 353 353
235 1 barf("Can't compare complex numbers");
236 353 ▶ PDL_BADVAL_WARN(a)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(a) 8 345 353
PDL_BADVAL_WARN(a) 8 0 8
PDL_BADVAL_WARN(a) 8 345 353
PDL_BADVAL_WARN(a) 0 353 353
PDL_BADVAL_WARN(a) 351 2 353
PDL_BADVAL_WARN(a) 0 351 351
237 353 ▶ PDL_BADVAL_WARN(b)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(b) 0 353 353
PDL_BADVAL_WARN(b) 0 0 0
PDL_BADVAL_WARN(b) 0 353 353
PDL_BADVAL_WARN(b) 0 353 353
PDL_BADVAL_WARN(b) 353 0 353
PDL_BADVAL_WARN(b) 0 353 353
238 353 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 353 353
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 353 353
PDL_XS_INPLACE(a, c) 0 353 353
239 353 PDL->barf_if_error(pdl_run_lt(a,b,c));
240 353 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 353 0 353
PDL_XS_RETURN(ST(0) = c_SV) 353 0 353
PDL_XS_RETURN(ST(0) = c_SV) 353 0 353
PDL_XS_RETURN(ST(0) = c_SV) 0 353 353
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
241  
242 void
243 pdl_run_le(a, b, c=c, swap=swap)
244 SV *c_SV = (items == 4) ? ST(2) : NULL;
245 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
246 PREINIT:
247 21 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 21 0 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 21 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 21 0 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 21 0 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 21 0 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 21 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 21 0 21
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 21 21
248 INPUT:
249 pdl *a
250 pdl *b
251 pdl *c=NO_INIT
252 int swap=NO_INIT
253 PPCODE:
254 21 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 21 21
255 21 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 21 21
256 0 pdl *tmp = a;
257 0 a = b;
258 0 b = tmp;
259 }
260 21 ▶ if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF))
Branch: 2 branches
BranchTrueFalseTotal
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 20 1 21
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 0 20 20
261 1 barf("Can't compare complex numbers");
262 20 ▶ PDL_BADVAL_WARN(a)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(a) 1 19 20
PDL_BADVAL_WARN(a) 1 0 1
PDL_BADVAL_WARN(a) 1 19 20
PDL_BADVAL_WARN(a) 0 20 20
PDL_BADVAL_WARN(a) 19 1 20
PDL_BADVAL_WARN(a) 0 19 19
263 20 ▶ PDL_BADVAL_WARN(b)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(b) 0 20 20
PDL_BADVAL_WARN(b) 0 0 0
PDL_BADVAL_WARN(b) 0 20 20
PDL_BADVAL_WARN(b) 0 20 20
PDL_BADVAL_WARN(b) 20 0 20
PDL_BADVAL_WARN(b) 0 20 20
264 20 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 20 20
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 20 20
PDL_XS_INPLACE(a, c) 0 20 20
265 20 PDL->barf_if_error(pdl_run_le(a,b,c));
266 20 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 20 0 20
PDL_XS_RETURN(ST(0) = c_SV) 20 0 20
PDL_XS_RETURN(ST(0) = c_SV) 20 0 20
PDL_XS_RETURN(ST(0) = c_SV) 0 20 20
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
267  
268 void
269 pdl_run_ge(a, b, c=c, swap=swap)
270 SV *c_SV = (items == 4) ? ST(2) : NULL;
271 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
272 PREINIT:
273 16 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 16 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 16 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 16 16
274 INPUT:
275 pdl *a
276 pdl *b
277 pdl *c=NO_INIT
278 int swap=NO_INIT
279 PPCODE:
280 16 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 16 16
281 16 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 9 7 16
282 9 pdl *tmp = a;
283 9 a = b;
284 9 b = tmp;
285 }
286 16 ▶ if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF))
Branch: 2 branches
BranchTrueFalseTotal
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 15 1 16
if ((a->datatype >= PDL_CF) || (b->datatype >= PDL_CF)) 0 15 15
287 1 barf("Can't compare complex numbers");
288 15 ▶ PDL_BADVAL_WARN(a)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(a) 1 14 15
PDL_BADVAL_WARN(a) 1 0 1
PDL_BADVAL_WARN(a) 1 14 15
PDL_BADVAL_WARN(a) 0 15 15
PDL_BADVAL_WARN(a) 14 1 15
PDL_BADVAL_WARN(a) 0 14 14
289 15 ▶ PDL_BADVAL_WARN(b)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(b) 0 15 15
PDL_BADVAL_WARN(b) 0 0 0
PDL_BADVAL_WARN(b) 0 15 15
PDL_BADVAL_WARN(b) 0 15 15
PDL_BADVAL_WARN(b) 15 0 15
PDL_BADVAL_WARN(b) 0 15 15
290 15 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 15 15
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 15 15
PDL_XS_INPLACE(a, c) 0 15 15
291 15 PDL->barf_if_error(pdl_run_ge(a,b,c));
292 15 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 15 0 15
PDL_XS_RETURN(ST(0) = c_SV) 15 0 15
PDL_XS_RETURN(ST(0) = c_SV) 15 0 15
PDL_XS_RETURN(ST(0) = c_SV) 0 15 15
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
293  
294 void
295 pdl_run_eq(a, b, c=c, swap=swap)
296 SV *c_SV = (items == 4) ? ST(2) : NULL;
297 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
298 PREINIT:
299 845 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 845 0 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 3 842 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 3 0 3
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 845 0 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 845 0 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 845 0 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 845 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 845 0 845
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 845 845
300 INPUT:
301 pdl *a
302 pdl *b
303 pdl *c=NO_INIT
304 int swap=NO_INIT
305 PPCODE:
306 845 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 845 845
307 845 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 14 831 845
308 14 pdl *tmp = a;
309 14 a = b;
310 14 b = tmp;
311 }
312 845 ▶ PDL_BADVAL_WARN(a)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(a) 11 834 845
PDL_BADVAL_WARN(a) 11 0 11
PDL_BADVAL_WARN(a) 11 834 845
PDL_BADVAL_WARN(a) 0 845 845
PDL_BADVAL_WARN(a) 842 3 845
PDL_BADVAL_WARN(a) 1 841 842
313 845 ▶ PDL_BADVAL_WARN(b)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(b) 0 845 845
PDL_BADVAL_WARN(b) 0 0 0
PDL_BADVAL_WARN(b) 0 845 845
PDL_BADVAL_WARN(b) 0 845 845
PDL_BADVAL_WARN(b) 845 0 845
PDL_BADVAL_WARN(b) 0 845 845
314 845 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 845 845
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 845 845
PDL_XS_INPLACE(a, c) 0 845 845
315 845 PDL->barf_if_error(pdl_run_eq(a,b,c));
316 845 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 845 0 845
PDL_XS_RETURN(ST(0) = c_SV) 845 0 845
PDL_XS_RETURN(ST(0) = c_SV) 845 0 845
PDL_XS_RETURN(ST(0) = c_SV) 0 845 845
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
317  
318 void
319 pdl_run_ne(a, b, c=c, swap=swap)
320 SV *c_SV = (items == 4) ? ST(2) : NULL;
321 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
322 PREINIT:
323 246 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 246 0 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 246 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 246 0 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 246 0 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 246 0 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 246 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 246 0 246
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 246 246
324 INPUT:
325 pdl *a
326 pdl *b
327 pdl *c=NO_INIT
328 int swap=NO_INIT
329 PPCODE:
330 245 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 245 245
331 245 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 10 235 245
332 10 pdl *tmp = a;
333 10 a = b;
334 10 b = tmp;
335 }
336 245 ▶ PDL_BADVAL_WARN(a)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(a) 1 244 245
PDL_BADVAL_WARN(a) 1 0 1
PDL_BADVAL_WARN(a) 1 244 245
PDL_BADVAL_WARN(a) 0 245 245
PDL_BADVAL_WARN(a) 244 1 245
PDL_BADVAL_WARN(a) 0 244 244
337 245 ▶ PDL_BADVAL_WARN(b)
Branch: 6 branches
BranchTrueFalseTotal
PDL_BADVAL_WARN(b) 0 245 245
PDL_BADVAL_WARN(b) 0 0 0
PDL_BADVAL_WARN(b) 0 245 245
PDL_BADVAL_WARN(b) 0 245 245
PDL_BADVAL_WARN(b) 245 0 245
PDL_BADVAL_WARN(b) 0 245 245
338 245 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 245 245
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 245 245
PDL_XS_INPLACE(a, c) 0 245 245
339 245 PDL->barf_if_error(pdl_run_ne(a,b,c));
340 245 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 245 0 245
PDL_XS_RETURN(ST(0) = c_SV) 245 0 245
PDL_XS_RETURN(ST(0) = c_SV) 245 0 245
PDL_XS_RETURN(ST(0) = c_SV) 0 245 245
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
341  
342 void
343 pdl_run_shiftleft(a, b, c=c, swap=swap)
344 SV *c_SV = (items == 4) ? ST(2) : NULL;
345 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
346 PREINIT:
347 9 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 9 0 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 9 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 9 0 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 9 0 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 9 0 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 9 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 9 0 9
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 9 9
348 INPUT:
349 pdl *a
350 pdl *b
351 pdl *c=NO_INIT
352 int swap=NO_INIT
353 PPCODE:
354 9 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 9 9
355 9 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 9 9
356 0 pdl *tmp = a;
357 0 a = b;
358 0 b = tmp;
359 }
360 9 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 9 9
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 9 9
PDL_XS_INPLACE(a, c) 0 9 9
361 9 PDL->barf_if_error(pdl_run_shiftleft(a,b,c));
362 9 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 9 0 9
PDL_XS_RETURN(ST(0) = c_SV) 9 0 9
PDL_XS_RETURN(ST(0) = c_SV) 9 0 9
PDL_XS_RETURN(ST(0) = c_SV) 0 9 9
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
363  
364 void
365 pdl_run_shiftright(a, b, c=c, swap=swap)
366 SV *c_SV = (items == 4) ? ST(2) : NULL;
367 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
368 PREINIT:
369 0 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
370 INPUT:
371 pdl *a
372 pdl *b
373 pdl *c=NO_INIT
374 int swap=NO_INIT
375 PPCODE:
376 0 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 0 0
377 0 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 0 0
378 0 pdl *tmp = a;
379 0 a = b;
380 0 b = tmp;
381 }
382 0 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 0 0
383 0 PDL->barf_if_error(pdl_run_shiftright(a,b,c));
384 0 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
385  
386 void
387 pdl_run_or2(a, b, c=c, swap=swap)
388 SV *c_SV = (items == 4) ? ST(2) : NULL;
389 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
390 PREINIT:
391 79 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 79 0 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1 78 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 79 0 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 79 0 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 79 0 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 79 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 79 0 79
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 79 79
392 INPUT:
393 pdl *a
394 pdl *b
395 pdl *c=NO_INIT
396 int swap=NO_INIT
397 PPCODE:
398 79 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 79 0 79
399 79 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 79 79
400 0 pdl *tmp = a;
401 0 a = b;
402 0 b = tmp;
403 }
404 79 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 52 27 79
PDL_XS_INPLACE(a, c) 0 52 52
PDL_XS_INPLACE(a, c) 0 27 27
PDL_XS_INPLACE(a, c) 0 27 27
405 79 PDL->barf_if_error(pdl_run_or2(a,b,c));
406 79 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 79 0 79
PDL_XS_RETURN(ST(0) = c_SV) 79 0 79
PDL_XS_RETURN(ST(0) = c_SV) 79 0 79
PDL_XS_RETURN(ST(0) = c_SV) 0 79 79
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
407  
408 void
409 pdl_run_and2(a, b, c=c, swap=swap)
410 SV *c_SV = (items == 4) ? ST(2) : NULL;
411 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
412 PREINIT:
413 45 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 45 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 45 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 45 45
414 INPUT:
415 pdl *a
416 pdl *b
417 pdl *c=NO_INIT
418 int swap=NO_INIT
419 PPCODE:
420 45 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 45 0 45
421 45 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 45 45
422 0 pdl *tmp = a;
423 0 a = b;
424 0 b = tmp;
425 }
426 45 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 5 40 45
PDL_XS_INPLACE(a, c) 0 5 5
PDL_XS_INPLACE(a, c) 0 40 40
PDL_XS_INPLACE(a, c) 0 40 40
427 45 PDL->barf_if_error(pdl_run_and2(a,b,c));
428 45 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 45 0 45
PDL_XS_RETURN(ST(0) = c_SV) 45 0 45
PDL_XS_RETURN(ST(0) = c_SV) 45 0 45
PDL_XS_RETURN(ST(0) = c_SV) 0 45 45
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
429  
430 void
431 pdl_run_xor(a, b, c=c, swap=swap)
432 SV *c_SV = (items == 4) ? ST(2) : NULL;
433 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
434 PREINIT:
435 4 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 4 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 4 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 4 4
436 INPUT:
437 pdl *a
438 pdl *b
439 pdl *c=NO_INIT
440 int swap=NO_INIT
441 PPCODE:
442 4 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 2 2 4
443 4 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 4 4
444 0 pdl *tmp = a;
445 0 a = b;
446 0 b = tmp;
447 }
448 4 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 4 4
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 2 2 4
PDL_XS_INPLACE(a, c) 0 2 2
449 4 PDL->barf_if_error(pdl_run_xor(a,b,c));
450 4 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 2 2 4
PDL_XS_RETURN(ST(0) = c_SV) 2 0 2
PDL_XS_RETURN(ST(0) = c_SV) 2 0 2
PDL_XS_RETURN(ST(0) = c_SV) 0 2 2
PDL_XS_RETURN(ST(0) = c_SV) 0 2 2
451  
452 void
453 pdl_run_power(a, b, c=c, swap=swap)
454 SV *c_SV = (items == 4) ? ST(2) : NULL;
455 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
456 PREINIT:
457 93 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 91 2 93
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1 90 91
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 91 0 91
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 91 0 91
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 91 0 91
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 91 91
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 91 0 91
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 91 91
458 INPUT:
459 pdl *a
460 pdl *b
461 pdl *c=NO_INIT
462 int swap=NO_INIT
463 PPCODE:
464 93 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 64 29 93
465 93 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 1 92 93
466 1 pdl *tmp = a;
467 1 a = b;
468 1 b = tmp;
469 }
470 93 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 63 30 93
PDL_XS_INPLACE(a, c) 0 63 63
PDL_XS_INPLACE(a, c) 0 30 30
PDL_XS_INPLACE(a, c) 2 28 30
471 93 PDL->barf_if_error(pdl_run_power(a,b,c));
472 93 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 93 0 93
PDL_XS_RETURN(ST(0) = c_SV) 93 0 93
PDL_XS_RETURN(ST(0) = c_SV) 93 0 93
PDL_XS_RETURN(ST(0) = c_SV) 0 93 93
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
473  
474 void
475 pdl_run_atan2(a, b, c=c, swap=swap)
476 SV *c_SV = (items == 4) ? ST(2) : NULL;
477 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
478 PREINIT:
479 20 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 18 2 20
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 18 18
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 18 0 18
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 18 0 18
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 18 0 18
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 18 18
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 18 0 18
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 18 18
480 INPUT:
481 pdl *a
482 pdl *b
483 pdl *c=NO_INIT
484 int swap=NO_INIT
485 PPCODE:
486 20 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 5 15 20
487 20 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 20 20
488 0 pdl *tmp = a;
489 0 a = b;
490 0 b = tmp;
491 }
492 20 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 20 20
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 20 20
PDL_XS_INPLACE(a, c) 2 18 20
493 20 PDL->barf_if_error(pdl_run_atan2(a,b,c));
494 20 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 20 0 20
PDL_XS_RETURN(ST(0) = c_SV) 20 0 20
PDL_XS_RETURN(ST(0) = c_SV) 20 0 20
PDL_XS_RETURN(ST(0) = c_SV) 0 20 20
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
495  
496 void
497 pdl_run_modulo(a, b, c=c, swap=swap)
498 SV *c_SV = (items == 4) ? ST(2) : NULL;
499 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
500 PREINIT:
501 220 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 220 0 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 220 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 220 0 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 220 0 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 220 0 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 220 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 220 0 220
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 220 220
502 INPUT:
503 pdl *a
504 pdl *b
505 pdl *c=NO_INIT
506 int swap=NO_INIT
507 PPCODE:
508 220 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 170 50 220
509 220 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 220 220
510 0 pdl *tmp = a;
511 0 a = b;
512 0 b = tmp;
513 }
514 220 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 170 50 220
PDL_XS_INPLACE(a, c) 0 170 170
PDL_XS_INPLACE(a, c) 0 50 50
PDL_XS_INPLACE(a, c) 0 50 50
515 220 PDL->barf_if_error(pdl_run_modulo(a,b,c));
516 220 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 220 0 220
PDL_XS_RETURN(ST(0) = c_SV) 220 0 220
PDL_XS_RETURN(ST(0) = c_SV) 220 0 220
PDL_XS_RETURN(ST(0) = c_SV) 0 220 220
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
517  
518 void
519 pdl_run_spaceship(a, b, c=c, swap=swap)
520 SV *c_SV = (items == 4) ? ST(2) : NULL;
521 SV *swap_SV = (items == 4) ? ST(3) : !(items == (3-1)) ? ST(2) : NULL;
522 PREINIT:
523 0 ▶ PDL_XS_PREAMBLE((items == 4) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 4) ? 0 : 1); 0 0 0
524 INPUT:
525 pdl *a
526 pdl *b
527 pdl *c=NO_INIT
528 int swap=NO_INIT
529 PPCODE:
530 0 ▶ if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); }
Branch: 1 branch
BranchTrueFalseTotal
if (!swap_SV) { swap = (0); } else { swap = (int)SvIV(swap_SV); } 0 0 0
531 0 ▶ if (swap) {
Branch: 1 branch
BranchTrueFalseTotal
if (swap) { 0 0 0
532 0 pdl *tmp = a;
533 0 a = b;
534 0 b = tmp;
535 }
536 0 ▶ PDL_XS_INPLACE(a, c)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 0 0
PDL_XS_INPLACE(a, c) 0 0 0
537 0 PDL->barf_if_error(pdl_run_spaceship(a,b,c));
538 0 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
PDL_XS_RETURN(ST(0) = c_SV) 0 0 0
539  
540 void
541 pdl_run_bitnot(a, b=b)
542 SV *b_SV = items > 1 ? ST(1) : NULL;
543 PREINIT:
544 5 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 4 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 5 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 5 5
545 INPUT:
546 pdl *a
547 pdl *b=NO_INIT
548 PPCODE:
549 5 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 0 5 5
PDL_XS_INPLACE(a, b) 0 0 0
PDL_XS_INPLACE(a, b) 0 5 5
PDL_XS_INPLACE(a, b) 0 5 5
550 5 PDL->barf_if_error(pdl_run_bitnot(a,b));
551 5 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 5 0 5
PDL_XS_RETURN(ST(0) = b_SV) 5 0 5
PDL_XS_RETURN(ST(0) = b_SV) 5 0 5
PDL_XS_RETURN(ST(0) = b_SV) 0 5 5
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
552  
553 void
554 pdl_run_sqrt(a, b=b)
555 SV *b_SV = items > 1 ? ST(1) : NULL;
556 PREINIT:
557 60 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 60 0 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 58 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 60 0 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 60 0 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 60 0 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 60 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 60 0 60
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 60 60
558 INPUT:
559 pdl *a
560 pdl *b=NO_INIT
561 PPCODE:
562 60 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 21 39 60
PDL_XS_INPLACE(a, b) 0 21 21
PDL_XS_INPLACE(a, b) 0 39 39
PDL_XS_INPLACE(a, b) 0 39 39
563 60 PDL->barf_if_error(pdl_run_sqrt(a,b));
564 60 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 60 0 60
PDL_XS_RETURN(ST(0) = b_SV) 60 0 60
PDL_XS_RETURN(ST(0) = b_SV) 60 0 60
PDL_XS_RETURN(ST(0) = b_SV) 0 60 60
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
565  
566 void
567 pdl_run_sin(a, b=b)
568 SV *b_SV = items > 1 ? ST(1) : NULL;
569 PREINIT:
570 77 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 77 0 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 75 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 77 0 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 77 0 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 77 0 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 77 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 77 0 77
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 77 77
571 INPUT:
572 pdl *a
573 pdl *b=NO_INIT
574 PPCODE:
575 77 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 0 77 77
PDL_XS_INPLACE(a, b) 0 0 0
PDL_XS_INPLACE(a, b) 0 77 77
PDL_XS_INPLACE(a, b) 0 77 77
576 77 PDL->barf_if_error(pdl_run_sin(a,b));
577 77 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 77 0 77
PDL_XS_RETURN(ST(0) = b_SV) 77 0 77
PDL_XS_RETURN(ST(0) = b_SV) 77 0 77
PDL_XS_RETURN(ST(0) = b_SV) 0 77 77
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
578  
579 void
580 pdl_run_cos(a, b=b)
581 SV *b_SV = items > 1 ? ST(1) : NULL;
582 PREINIT:
583 87 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 87 0 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 86 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 87 0 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 87 0 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 87 0 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 87 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 87 0 87
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 87 87
584 INPUT:
585 pdl *a
586 pdl *b=NO_INIT
587 PPCODE:
588 87 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 0 87 87
PDL_XS_INPLACE(a, b) 0 0 0
PDL_XS_INPLACE(a, b) 0 87 87
PDL_XS_INPLACE(a, b) 0 87 87
589 87 PDL->barf_if_error(pdl_run_cos(a,b));
590 87 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 87 0 87
PDL_XS_RETURN(ST(0) = b_SV) 87 0 87
PDL_XS_RETURN(ST(0) = b_SV) 87 0 87
PDL_XS_RETURN(ST(0) = b_SV) 0 87 87
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
591  
592 void
593 pdl_run_not(a, b=b)
594 SV *b_SV = items > 1 ? ST(1) : NULL;
595 PREINIT:
596 160 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 160 0 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 158 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 160 0 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 160 0 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 160 0 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 160 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 160 0 160
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 160 160
597 INPUT:
598 pdl *a
599 pdl *b=NO_INIT
600 PPCODE:
601 160 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 0 160 160
PDL_XS_INPLACE(a, b) 0 0 0
PDL_XS_INPLACE(a, b) 0 160 160
PDL_XS_INPLACE(a, b) 0 160 160
602 160 PDL->barf_if_error(pdl_run_not(a,b));
603 160 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 160 0 160
PDL_XS_RETURN(ST(0) = b_SV) 160 0 160
PDL_XS_RETURN(ST(0) = b_SV) 160 0 160
PDL_XS_RETURN(ST(0) = b_SV) 0 160 160
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
604  
605 void
606 pdl_run_exp(a, b=b)
607 SV *b_SV = items > 1 ? ST(1) : NULL;
608 PREINIT:
609 25 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 25 0 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 24 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 25 0 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 25 0 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 25 0 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 25 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 25 0 25
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 25 25
610 INPUT:
611 pdl *a
612 pdl *b=NO_INIT
613 PPCODE:
614 25 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 0 25 25
PDL_XS_INPLACE(a, b) 0 0 0
PDL_XS_INPLACE(a, b) 0 25 25
PDL_XS_INPLACE(a, b) 0 25 25
615 25 PDL->barf_if_error(pdl_run_exp(a,b));
616 25 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 25 0 25
PDL_XS_RETURN(ST(0) = b_SV) 25 0 25
PDL_XS_RETURN(ST(0) = b_SV) 25 0 25
PDL_XS_RETURN(ST(0) = b_SV) 0 25 25
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
617  
618 void
619 pdl_run_log(a, b=b)
620 SV *b_SV = items > 1 ? ST(1) : NULL;
621 PREINIT:
622 13 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 13 0 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 12 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 13 0 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 13 0 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 13 0 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 13 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 13 0 13
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 13 13
623 INPUT:
624 pdl *a
625 pdl *b=NO_INIT
626 PPCODE:
627 13 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 2 11 13
PDL_XS_INPLACE(a, b) 0 2 2
PDL_XS_INPLACE(a, b) 0 11 11
PDL_XS_INPLACE(a, b) 0 11 11
628 13 PDL->barf_if_error(pdl_run_log(a,b));
629 13 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 13 0 13
PDL_XS_RETURN(ST(0) = b_SV) 13 0 13
PDL_XS_RETURN(ST(0) = b_SV) 13 0 13
PDL_XS_RETURN(ST(0) = b_SV) 0 13 13
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
630  
631 void
632 pdl_run_re(complexv, b=PDL_XS_PERLINIT_initsv(b_SV))
633 SV *b_SV = items > 1 ? ST(1) : NULL;
634 PREINIT:
635 45 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 45 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 45 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 45 45
636 INPUT:
637 pdl *complexv
638 pdl *b
639 PPCODE:
640 45 ▶ if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("re: complexv->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("re: complexv->inplace but not supported"); 0 45 45
641 45 PDL->barf_if_error(pdl_run_re(complexv,b));
642 45 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 45 0 45
PDL_XS_RETURN(ST(0) = b_SV) 45 0 45
PDL_XS_RETURN(ST(0) = b_SV) 45 0 45
PDL_XS_RETURN(ST(0) = b_SV) 0 45 45
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
643  
644 void
645 pdl_run_im(complexv, b=PDL_XS_PERLINIT_initsv(b_SV))
646 SV *b_SV = items > 1 ? ST(1) : NULL;
647 PREINIT:
648 41 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 41 0 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 41 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 41 0 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 41 0 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 41 0 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 41 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 41 0 41
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 41 41
649 INPUT:
650 pdl *complexv
651 pdl *b
652 PPCODE:
653 41 ▶ if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("im: complexv->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("im: complexv->inplace but not supported"); 0 41 41
654 41 PDL->barf_if_error(pdl_run_im(complexv,b));
655 41 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 41 0 41
PDL_XS_RETURN(ST(0) = b_SV) 41 0 41
PDL_XS_RETURN(ST(0) = b_SV) 41 0 41
PDL_XS_RETURN(ST(0) = b_SV) 0 41 41
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
656  
657 void
658 pdl_run__cabs(complexv, b=PDL_XS_PERLINIT_initsv(b_SV))
659 SV *b_SV = items > 1 ? ST(1) : NULL;
660 PREINIT:
661 6 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 6 0 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 6 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 6 0 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 6 0 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 6 0 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 6 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 6 0 6
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 6 6
662 INPUT:
663 pdl *complexv
664 pdl *b
665 PPCODE:
666 6 ▶ if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("_cabs: complexv->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("_cabs: complexv->inplace but not supported"); 0 6 6
667 6 PDL->barf_if_error(pdl_run__cabs(complexv,b));
668 6 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 6 0 6
PDL_XS_RETURN(ST(0) = b_SV) 6 0 6
PDL_XS_RETURN(ST(0) = b_SV) 6 0 6
PDL_XS_RETURN(ST(0) = b_SV) 0 6 6
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
669  
670 void
671 pdl_run__rabs(a, b=b)
672 SV *b_SV = items > 1 ? ST(1) : NULL;
673 PREINIT:
674 342 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 342 0 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 341 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1 0 1
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 342 0 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 342 0 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 342 0 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 342 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 342 0 342
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 342 342
675 INPUT:
676 pdl *a
677 pdl *b=NO_INIT
678 PPCODE:
679 342 ▶ PDL_XS_INPLACE(a, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, b) 0 342 342
PDL_XS_INPLACE(a, b) 0 0 0
PDL_XS_INPLACE(a, b) 0 342 342
PDL_XS_INPLACE(a, b) 0 342 342
680 342 PDL->barf_if_error(pdl_run__rabs(a,b));
681 342 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 342 0 342
PDL_XS_RETURN(ST(0) = b_SV) 342 0 342
PDL_XS_RETURN(ST(0) = b_SV) 342 0 342
PDL_XS_RETURN(ST(0) = b_SV) 0 342 342
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
682  
683 void
684 _log10_int(a,b)
685 pdl *a
686 pdl *b
687 CODE:
688 11 PDL->barf_if_error(pdl_run_log10(a,b));
689  
690 void
691 pdl_run_assgn(a, b=PDL_XS_PERLINIT_initsv(b_SV))
692 SV *b_SV = items > 1 ? ST(1) : NULL;
693 PREINIT:
694 6014 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1792 4222 6014
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 1792 1792
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1792 0 1792
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1792 0 1792
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1792 0 1792
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 1792 1792
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 1792 0 1792
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 1792 1792
695 INPUT:
696 pdl *a
697 pdl *b
698 PPCODE:
699 6014 ▶ if (PDL_IS_INPLACE(a)) PDL->pdl_barf("assgn: a->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(a)) PDL->pdl_barf("assgn: a->inplace but not supported"); 0 6014 6014
700 6014 PDL->barf_if_error(pdl_run_assgn(a,b));
701 6009 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 1 6008 6009
PDL_XS_RETURN(ST(0) = b_SV) 1 0 1
PDL_XS_RETURN(ST(0) = b_SV) 1 0 1
PDL_XS_RETURN(ST(0) = b_SV) 0 1 1
PDL_XS_RETURN(ST(0) = b_SV) 0 6008 6008
702  
703 void
704 pdl_run_carg(complexv, b=PDL_XS_PERLINIT_initsv(b_SV))
705 SV *b_SV = items > 1 ? ST(1) : NULL;
706 PREINIT:
707 4 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 4 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 4 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 4 4
708 INPUT:
709 pdl *complexv
710 pdl *b
711 PPCODE:
712 4 ▶ if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("carg: complexv->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(complexv)) PDL->pdl_barf("carg: complexv->inplace but not supported"); 0 4 4
713 4 PDL->barf_if_error(pdl_run_carg(complexv,b));
714 3 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 3 0 3
PDL_XS_RETURN(ST(0) = b_SV) 3 0 3
PDL_XS_RETURN(ST(0) = b_SV) 3 0 3
PDL_XS_RETURN(ST(0) = b_SV) 0 3 3
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
715  
716 void
717 pdl_run_conj(complexv, b=b)
718 SV *b_SV = items > 1 ? ST(1) : NULL;
719 PREINIT:
720 5 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 5 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 5 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 5 0 5
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 5 5
721 INPUT:
722 pdl *complexv
723 pdl *b=NO_INIT
724 PPCODE:
725 5 ▶ PDL_XS_INPLACE(complexv, b)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(complexv, b) 0 5 5
PDL_XS_INPLACE(complexv, b) 0 0 0
PDL_XS_INPLACE(complexv, b) 0 5 5
PDL_XS_INPLACE(complexv, b) 0 5 5
726 5 PDL->barf_if_error(pdl_run_conj(complexv,b));
727 5 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 5 0 5
PDL_XS_RETURN(ST(0) = b_SV) 5 0 5
PDL_XS_RETURN(ST(0) = b_SV) 5 0 5
PDL_XS_RETURN(ST(0) = b_SV) 0 5 5
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
728  
729 void
730 pdl_run_czip(r, i, c=PDL_XS_PERLINIT_initsv(c_SV))
731 SV *c_SV = items > 2 ? ST(2) : NULL;
732 PREINIT:
733 47 ▶ PDL_XS_PREAMBLE((items == 3) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 45 2 47
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 45 45
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 45 45
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 45 0 45
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 45 45
734 INPUT:
735 pdl *r
736 pdl *i
737 pdl *c
738 PPCODE:
739 47 ▶ if (PDL_IS_INPLACE(r)) PDL->pdl_barf("czip: r->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(r)) PDL->pdl_barf("czip: r->inplace but not supported"); 0 47 47
740 47 ▶ if (PDL_IS_INPLACE(i)) PDL->pdl_barf("czip: i->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(i)) PDL->pdl_barf("czip: i->inplace but not supported"); 0 47 47
741 47 PDL->barf_if_error(pdl_run_czip(r,i,c));
742 46 ▶ PDL_XS_RETURN(ST(0) = c_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = c_SV) 35 11 46
PDL_XS_RETURN(ST(0) = c_SV) 35 0 35
PDL_XS_RETURN(ST(0) = c_SV) 35 0 35
PDL_XS_RETURN(ST(0) = c_SV) 0 35 35
PDL_XS_RETURN(ST(0) = c_SV) 0 11 11
743  
744 void
745 pdl_run_ipow(a, b, ans=ans)
746 SV *ans_SV = items > 2 ? ST(2) : NULL;
747 PREINIT:
748 16 ▶ PDL_XS_PREAMBLE((items == 3) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 16 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 16 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 16 0 16
PDL_XS_PREAMBLE((items == 3) ? 0 : 1); 0 16 16
749 INPUT:
750 pdl *a
751 pdl *b
752 pdl *ans=NO_INIT
753 PPCODE:
754 16 ▶ PDL_XS_INPLACE(a, ans)
Branch: 4 branches
BranchTrueFalseTotal
PDL_XS_INPLACE(a, ans) 0 16 16
PDL_XS_INPLACE(a, ans) 0 0 0
PDL_XS_INPLACE(a, ans) 0 16 16
PDL_XS_INPLACE(a, ans) 0 16 16
755 16 PDL->barf_if_error(pdl_run_ipow(a,b,ans));
756 16 ▶ PDL_XS_RETURN(ST(0) = ans_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = ans_SV) 16 0 16
PDL_XS_RETURN(ST(0) = ans_SV) 16 0 16
PDL_XS_RETURN(ST(0) = ans_SV) 16 0 16
PDL_XS_RETURN(ST(0) = ans_SV) 0 16 16
PDL_XS_RETURN(ST(0) = ans_SV) 0 0 0
757  
758 void
759 pdl_run_abs2(a, b=PDL_XS_PERLINIT_initsv(b_SV))
760 SV *b_SV = items > 1 ? ST(1) : NULL;
761 PREINIT:
762 2 ▶ PDL_XS_PREAMBLE((items == 2) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 2 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 2 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 2 0 2
PDL_XS_PREAMBLE((items == 2) ? 0 : 1); 0 2 2
763 INPUT:
764 pdl *a
765 pdl *b
766 PPCODE:
767 2 ▶ if (PDL_IS_INPLACE(a)) PDL->pdl_barf("abs2: a->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(a)) PDL->pdl_barf("abs2: a->inplace but not supported"); 0 2 2
768 2 PDL->barf_if_error(pdl_run_abs2(a,b));
769 2 ▶ PDL_XS_RETURN(ST(0) = b_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = b_SV) 2 0 2
PDL_XS_RETURN(ST(0) = b_SV) 2 0 2
PDL_XS_RETURN(ST(0) = b_SV) 2 0 2
PDL_XS_RETURN(ST(0) = b_SV) 0 2 2
PDL_XS_RETURN(ST(0) = b_SV) 0 0 0
770  
771 void
772 _r2C_int(r,c)
773 pdl *r
774 pdl *c
775 CODE:
776 26 PDL->barf_if_error(pdl_run_r2C(r,c));
777  
778 void
779 _i2C_int(i,c)
780 pdl *i
781 pdl *c
782 CODE:
783 3 PDL->barf_if_error(pdl_run_i2C(i,c));
784  
785  
786 #line 483 "lib/PDL/PP.pm"
787 BOOT:
788 /* Get pointer to structure of core shared C routines */
789 /* make sure PDL::Core is loaded */
790 #line 791 "lib/PDL/Ops.xs"
791 71 perl_require_pv ("PDL/Core.pm"); /* make sure PDL::Core is loaded */
792 #ifndef aTHX_
793 #define aTHX_
794 #endif
795 71 ▶ if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV));
Branch: 3 branches
BranchTrueFalseTotal
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 71 0 71
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 0 71 71
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 0 0 0
796 71 SV* CoreSV = perl_get_sv("PDL::SHARE",FALSE); /* var with core structure */
797 71 ▶ if (!CoreSV)
Branch: 1 branch
BranchTrueFalseTotal
if (!CoreSV) 0 71 71
798 0 Perl_croak(aTHX_ "We require the PDL::Core module, which was not found");
799 71 ▶ if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */
Branch: 1 branch
BranchTrueFalseTotal
if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ 0 71 71
800 0 Perl_croak(aTHX_ "Got NULL pointer for PDL");
801 71 ▶ if (PDL->Version != PDL_CORE_VERSION)
Branch: 1 branch
BranchTrueFalseTotal
if (PDL->Version != PDL_CORE_VERSION) 0 71 71
802 0 Perl_croak(aTHX_ "[PDL->Version: %ld PDL_CORE_VERSION: %ld XS_VERSION: %s] PDL::Ops needs to be recompiled against the newly installed PDL", (long int)PDL->Version, (long int)PDL_CORE_VERSION, XS_VERSION);
803 71 char *package = "PDL";
804 71 HV* stash = gv_stashpvn(package, strlen(package), TRUE);
805 71 char *meths[] = {"re","im",NULL}, **methsptr = meths;
806 213 ▶ for (; *methsptr; methsptr++) {
Branch: 1 branch
BranchTrueFalseTotal
for (; *methsptr; methsptr++) { 142 71 213
807 142 SV **meth = hv_fetch(stash, *methsptr, strlen(*methsptr), 0);
808 142 ▶ if (!meth) croak("No found method '%s' in '%s'", *methsptr, package);
Branch: 1 branch
BranchTrueFalseTotal
if (!meth) croak("No found method '%s' in '%s'", *methsptr, package); 0 142 142
809 142 CV *cv = GvCV(*meth);
810 142 ▶ if (!cv) croak("No found CV for '%s' in '%s'", *methsptr, package);
Branch: 1 branch
BranchTrueFalseTotal
if (!cv) croak("No found CV for '%s' in '%s'", *methsptr, package); 0 142 142
811 142 CvLVALUE_on(cv);
812 }
« lib/PDL/Slices.xs ↑ Summary lib/PDL/Primitive-pp-vsearch_bin_exclusive.c »