Q.xs

filter: Statementstmt 74.4% 943 / 1267 Branchbran 43.5% 372 / 854 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 62.0% 1315 / 2121 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Math/Complex_C/Q.pm ↑ Summary
1  
2 #ifdef __MINGW32__
3 #ifndef __USE_MINGW_ANSI_STDIO
4 #define __USE_MINGW_ANSI_STDIO 1
5 #endif
6 #endif
7  
8 #define PERL_NO_GET_CONTEXT 1
9  
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13  
14 #include <quadmath.h>
15 #include <stdlib.h>
16 #include <float.h>
17  
18 #ifdef OLDPERL
19 #define SvUOK SvIsUV
20 #endif
21  
22 #ifndef Newx
23 # define Newx(v,n,t) New(0,v,n,t)
24 #endif
25  
26 #ifndef Newxz
27 # define Newxz(v,n,t) Newz(0,v,n,t)
28 #endif
29  
30 int _MATH_COMPLEX_C_Q_DIGITS = 36;
31  
32 #if defined(__MINGW32__) && !defined(__MINGW64__)
33 typedef __float128 float128 __attribute__ ((aligned(32)));
34 typedef __complex128 complex128 __attribute__ ((aligned(32)));
35 #elif defined(__MINGW64__) || (defined(DEBUGGING) && defined(NV_IS_DOUBLE))
36 typedef __float128 float128 __attribute__ ((aligned(8)));
37 typedef __complex128 complex128 __attribute__ ((aligned(8)));
38 #else
39 typedef __float128 float128;
40 typedef __complex128 complex128;
41 #endif
42  
43 #if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 4 /* mingw-w64 compiler - this condition needs tweaking */
44 #define MINGW_W64_BUGGY 1
45 #elif defined(__MINGW32__) && !defined(NO_GCC_TAN_BUG)
46 #ifndef GCC_TAN_BUG
47 #define GCC_TAN_BUG 1
48 #endif
49 #endif
50  
51 int nnum = 0;
52  
53 #define MATH_COMPLEX complex128
54  
55 2 void q_set_prec(int x) {
56 2 ▶ if(x < 1)croak("1st arg (precision) to q_set_prec must be at least 1");
Branch: 1 branch
BranchTrueFalseTotal
if(x < 1)croak("1st arg (precision) to q_set_prec must be at least 1"); 0 2 2
57 2 _MATH_COMPLEX_C_Q_DIGITS = x;
58 2 }
59  
60 8 int q_get_prec(void) {
61 8 return _MATH_COMPLEX_C_Q_DIGITS;
62 }
63  
64 74 int _is_nan(float128 x) {
65 74 ▶ if(x == x) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(x == x) return 0; 38 36 74
66 36 return 1;
67 }
68  
69 32 int _is_inf(float128 x) {
70 32 ▶ if(x == 0) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(x == 0) return 0; 0 32 32
71 32 ▶ if(_is_nan(x)) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(_is_nan(x)) return 0; 12 20 32
72 20 ▶ if(x / x == x / x) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(x / x == x / x) return 0; 12 8 20
73 8 ▶ if(x < 0) return -1;
Branch: 1 branch
BranchTrueFalseTotal
if(x < 0) return -1; 4 4 8
74 4 return 1;
75 }
76  
77 130 float128 _get_nan(void) {
78 130 float nanval = 0.0Q / 0.0Q;
79 130 return nanval;
80 }
81  
82 2 float128 _get_inf(void) {
83 2 float128 infval = 1.0Q / 0.0Q;
84 2 return infval;
85 }
86  
87 0 float128 _get_neg_inf(void) {
88 0 float128 inf = -1.0Q / 0.0Q;
89 0 return inf;
90 }
91  
92 2 int is_nanq(pTHX_ SV * a) {
93 2 ▶ if(SvNV(a) == SvNV(a)) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(SvNV(a) == SvNV(a)) return 0; 1 1 2
94 1 return 1;
95 }
96  
97 6 int is_infq(pTHX_ SV * a) {
98 6 ▶ if(SvNV(a) == 0) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(SvNV(a) == 0) return 0; 0 6 6
99 6 ▶ if(SvNV(a) != SvNV(a)) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(SvNV(a) != SvNV(a)) return 0; 0 6 6
100 6 ▶ if(SvNV(a) / SvNV(a) == SvNV(a) / SvNV(a)) return 0;
Branch: 1 branch
BranchTrueFalseTotal
if(SvNV(a) / SvNV(a) == SvNV(a) / SvNV(a)) return 0; 0 6 6
101 6 ▶ if(SvNV(a) < 0) return -1;
Branch: 1 branch
BranchTrueFalseTotal
if(SvNV(a) < 0) return -1; 0 6 6
102 6 return 1;
103 }
104  
105 63 SV * create_cq(pTHX) {
106  
107 MATH_COMPLEX *pc;
108 SV * obj_ref, * obj;
109  
110 63 New(42, pc, 1, MATH_COMPLEX);
111 63 ▶ if(pc == NULL) croak("Failed to allocate memory in create_cq function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in create_cq function"); 0 63 63
112  
113 63 obj_ref = newSV(0);
114 63 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
115  
116 63 __real__ *pc = _get_nan();
117 63 __imag__ *pc = _get_nan();
118  
119 63 sv_setiv(obj, INT2PTR(IV,pc));
120 63 SvREADONLY_on(obj);
121 63 return obj_ref;
122  
123 }
124  
125 66 void assign_cq(pTHX_ SV * rop, SV * d1, SV * d2) {
126 float128 _d1, _d2;
127  
128 66 ▶ if(SvUOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(d1)) { 0 66 66
129 0 _d1 = (float128)SvUVX(d1);
130 }
131 else {
132 66 ▶ if(SvIOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(d1)) { 35 31 66
133 35 _d1 = (float128)SvIVX(d1);
134 }
135 else {
136 31 ▶ if(SvNOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(d1)) { 18 13 31
137 18 _d1 = (float128)SvNVX(d1);
138 }
139 else {
140 13 ▶ if(SvPOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(d1)) { 13 0 13
141 13 ▶ if(!looks_like_number(d1)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(d1)) nnum++; 1 12 13
142 13 _d1 = strtoflt128(SvPV_nolen(d1), NULL) ;
143 }
144 else {
145 0 ▶ if(sv_isobject(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(d1)) { 0 0 0
146 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(d1)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
147 0 ▶ if(strEQ(h, "Math::Float128"))
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) 0 0 0
148 0 _d1 = *(INT2PTR(float128 *, SvIVX(SvRV(d1))));
149 0 else croak("Invalid object given as 2nd arg to assign_cq function");
150 }
151 else {
152 0 croak("Invalid 2nd arg supplied to assign_cq function");
153 }
154 }
155 }
156 }
157 }
158  
159 66 ▶ if(SvUOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(d2)) { 0 66 66
160 0 _d2 = (float128)SvUVX(d2);
161 }
162 else {
163 66 ▶ if(SvIOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(d2)) { 31 35 66
164 31 _d2 = (float128)SvIVX(d2);
165 }
166 else {
167 35 ▶ if(SvNOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(d2)) { 23 12 35
168 23 _d2 = (float128)SvNVX(d2);
169 }
170 else {
171 12 ▶ if(SvPOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(d2)) { 12 0 12
172 12 ▶ if(!looks_like_number(d2)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(d2)) nnum++; 1 11 12
173 12 _d2 = strtoflt128(SvPV_nolen(d2), NULL) ;
174 }
175 else {
176 0 ▶ if(sv_isobject(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(d2)) { 0 0 0
177 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(d2)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
178 0 ▶ if(strEQ(h, "Math::Float128"))
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) 0 0 0
179 0 _d2 = *(INT2PTR(float128 *, SvIVX(SvRV(d2))));
180 0 else croak("Invalid object given as 3rd arg to assign_cq function");
181 }
182 else {
183 0 croak("Invalid 3rd arg supplied to assign_cq function");
184 }
185 }
186 }
187 }
188 }
189  
190 66 __real__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = _d1;
191 66 __imag__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = _d2;
192 66 }
193  
194 4 void set_real_cq(pTHX_ SV * rop, SV * d1) {
195 float128 _d1;
196  
197 4 ▶ if(SvUOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(d1)) { 1 3 4
198 1 _d1 = (float128)SvUVX(d1);
199 }
200 else {
201 3 ▶ if(SvIOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(d1)) { 0 3 3
202 0 _d1 = (float128)SvIVX(d1);
203 }
204 else {
205 3 ▶ if(SvNOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(d1)) { 2 1 3
206 2 _d1 = (float128)SvNVX(d1);
207 }
208 else {
209 1 ▶ if(SvPOK(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(d1)) { 1 0 1
210 1 ▶ if(!looks_like_number(d1)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(d1)) nnum++; 0 1 1
211 1 _d1 = strtoflt128(SvPV_nolen(d1), NULL) ;
212 }
213 else {
214 0 ▶ if(sv_isobject(d1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(d1)) { 0 0 0
215 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(d1)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
216 0 ▶ if(strEQ(h, "Math::Float128"))
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) 0 0 0
217 0 _d1 = *(INT2PTR(float128 *, SvIVX(SvRV(d1))));
218 0 else croak("Invalid object given as 2nd arg to set_real_cq function");
219 }
220 else {
221 0 croak("Invalid 2nd arg supplied to set_real_cq function");
222 }
223 }
224 }
225 }
226 }
227  
228 4 __real__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = _d1;
229 4 }
230  
231 4 void set_imag_cq(pTHX_ SV * rop, SV * d2) {
232 float128 _d2;
233  
234 4 ▶ if(SvUOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(d2)) { 0 4 4
235 0 _d2 = (float128)SvUVX(d2);
236 }
237 else {
238 4 ▶ if(SvIOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(d2)) { 3 1 4
239 3 _d2 = (float128)SvIVX(d2);
240 }
241 else {
242 1 ▶ if(SvNOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(d2)) { 0 1 1
243 0 _d2 = (float128)SvNVX(d2);
244 }
245 else {
246 1 ▶ if(SvPOK(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(d2)) { 1 0 1
247 1 ▶ if(!looks_like_number(d2)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(d2)) nnum++; 0 1 1
248 1 _d2 = strtoflt128(SvPV_nolen(d2), NULL) ;
249 }
250 else {
251 0 ▶ if(sv_isobject(d2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(d2)) { 0 0 0
252 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(d2)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
253 0 ▶ if(strEQ(h, "Math::Float128"))
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) 0 0 0
254 0 _d2 = *(INT2PTR(float128 *, SvIVX(SvRV(d2))));
255 0 else croak("Invalid object given as 2nd arg to set_imag_cq function");
256 }
257 else {
258 0 croak("Invalid 2nd arg supplied to set_imag_cq function");
259 }
260 }
261 }
262 }
263 }
264  
265 4 __imag__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = _d2;
266 4 }
267  
268  
269 0 void F2cq(pTHX_ SV * rop, SV * d1, SV * d2) {
270 float128 _d1, _d2;
271  
272 0 ▶ if(sv_isobject(d1) && sv_isobject(d2)) {
Branch: 2 branches
BranchTrueFalseTotal
if(sv_isobject(d1) && sv_isobject(d2)) { 0 0 0
if(sv_isobject(d1) && sv_isobject(d2)) { 0 0 0
273 0 ▶ const char *h1 = HvNAME(SvSTASH(SvRV(d1)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h1 = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h1 = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h1 = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h1 = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h1 = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
const char *h1 = HvNAME(SvSTASH(SvRV(d1))); 0 0 0
274 0 ▶ const char *h2 = HvNAME(SvSTASH(SvRV(d2)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h2 = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h2 = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h2 = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h2 = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h2 = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
const char *h2 = HvNAME(SvSTASH(SvRV(d2))); 0 0 0
275 0 ▶ if(strEQ(h1, "Math::Float128") &&
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h1, "Math::Float128") && 0 0 0
276 0 ▶ strEQ(h2, "Math::Float128")) {
Branch: 1 branch
BranchTrueFalseTotal
strEQ(h2, "Math::Float128")) { 0 0 0
277  
278 0 _d1 = *(INT2PTR(float128 *, SvIVX(SvRV(d1))));
279 0 _d2 = *(INT2PTR(float128 *, SvIVX(SvRV(d2))));
280  
281 0 __real__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = _d1;
282 0 __imag__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = _d2;
283 }
284 0 else croak("Both 2nd and 3rd args supplied to F2cq need to be Math::Float128 objects");
285 }
286 0 else croak("Both 2nd and 3rd args supplied to F2cq need to be Math::Float128 objects");
287 0 }
288  
289 0 void cq2F(pTHX_ SV * rop1, SV * rop2, SV * op) {
290 0 ▶ if(sv_isobject(rop1)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(rop1)) { 0 0 0
291 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(rop1)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(rop1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop1))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop1))); 0 0 0
292 0 ▶ if(strEQ(h, "Math::Float128")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) { 0 0 0
293 0 *(INT2PTR(float128 *, SvIVX(SvRV(rop1)))) = crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
294 }
295 0 else croak("1st arg (a %s object) supplied to cq2F needs to be a Math::Float128 object", h);
296 }
297 0 else croak("1st arg (which needs to be a Math::Float128 object) supplied to cq2F is not an object");
298  
299 0 ▶ if(sv_isobject(rop2)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(rop2)) { 0 0 0
300 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(rop2)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(rop2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop2))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(rop2))); 0 0 0
301 0 ▶ if(strEQ(h, "Math::Float128")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) { 0 0 0
302 0 *(INT2PTR(float128 *, SvIVX(SvRV(rop2)))) = cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
303 }
304 0 else croak("2nd arg (a %s object) supplied to cq2F needs to be a Math::Float128 object", h);
305 }
306 0 else croak("2nd arg (which needs to be a Math::Float128 object) supplied to cq2F is not an object");
307 0 }
308  
309 1 void mul_cq(pTHX_ SV * rop, SV * op1, SV * op2) {
310 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) *
311 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op2))));
312 1 }
313  
314 1 void mul_c_nvq(pTHX_ SV * rop, SV * op1, SV * op2) {
315 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) *
316 1 (float128)SvNV(op2);
317 1 }
318  
319 1 void mul_c_ivq(pTHX_ SV * rop, SV * op1, SV * op2) {
320 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) *
321 1 (float128)SvIV(op2);
322 1 }
323  
324 1 void mul_c_uvq(pTHX_ SV * rop, SV * op1, SV * op2) {
325 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) *
326 1 (float128)SvUV(op2);
327 1 }
328  
329 1 void mul_c_pvq(pTHX_ SV * rop, SV * op1, SV * op2) {
330 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) *
331 1 strtoflt128(SvPV_nolen(op2), NULL);
332 1 }
333  
334 1 void div_cq(pTHX_ SV * rop, SV * op1, SV * op2) {
335 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) /
336 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op2))));
337 1 }
338  
339 1 void div_c_nvq(pTHX_ SV * rop, SV * op1, SV * op2) {
340 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) /
341 1 (float128)SvNV(op2);
342 1 }
343  
344 1 void div_c_ivq(pTHX_ SV * rop, SV * op1, SV * op2) {
345 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) /
346 1 (float128)SvIV(op2);
347 1 }
348  
349 1 void div_c_uvq(pTHX_ SV * rop, SV * op1, SV * op2) {
350 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) /
351 1 (float128)SvUV(op2);
352 1 }
353  
354 1 void div_c_pvq(pTHX_ SV * rop, SV * op1, SV * op2) {
355 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) /
356 1 strtoflt128(SvPV_nolen(op2), NULL);
357 1 }
358  
359 1 void add_cq(pTHX_ SV * rop, SV * op1, SV * op2) {
360 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) +
361 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op2))));
362 1 }
363  
364 1 void add_c_nvq(pTHX_ SV * rop, SV * op1, SV * op2) {
365 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) +
366 1 (float128)SvNV(op2);
367 1 }
368  
369 1 void add_c_ivq(pTHX_ SV * rop, SV * op1, SV * op2) {
370 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) +
371 1 (float128)SvIV(op2);
372 1 }
373  
374 1 void add_c_uvq(pTHX_ SV * rop, SV * op1, SV * op2) {
375 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) +
376 1 (float128)SvUV(op2);
377 1 }
378  
379 1 void add_c_pvq(pTHX_ SV * rop, SV * op1, SV * op2) {
380 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) +
381 1 strtoflt128(SvPV_nolen(op2), NULL);
382 1 }
383  
384 1 void sub_cq(pTHX_ SV * rop, SV * op1, SV * op2) {
385 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) -
386 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op2))));
387 1 }
388  
389 1 void sub_c_nvq(pTHX_ SV * rop, SV * op1, SV * op2) {
390 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) -
391 1 (float128)SvNV(op2);
392 1 }
393  
394 1 void sub_c_ivq(pTHX_ SV * rop, SV * op1, SV * op2) {
395 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) -
396 1 (float128)SvIV(op2);
397 1 }
398  
399 1 void sub_c_uvq(pTHX_ SV * rop, SV * op1, SV * op2) {
400 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) -
401 1 (float128)SvUV(op2);
402 1 }
403  
404 1 void sub_c_pvq(pTHX_ SV * rop, SV * op1, SV * op2) {
405 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op1)))) -
406 1 strtoflt128(SvPV_nolen(op2), NULL);
407 1 }
408  
409 101 void DESTROY(pTHX_ SV * op) {
410 101 Safefree(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))));
411 101 }
412  
413 69 SV * real_cq(pTHX_ SV * op) {
414 69 return newSVnv(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))))));
415 }
416  
417 0 SV * real_cq2F(pTHX_ SV * op) {
418 float128 * f;
419 SV * obj_ref, * obj;
420  
421 0 Newx(f, 1, float128);
422 0 ▶ if(f == NULL) croak("Failed to allocate memory in real_cq2F function");
Branch: 1 branch
BranchTrueFalseTotal
if(f == NULL) croak("Failed to allocate memory in real_cq2F function"); 0 0 0
423  
424 0 obj_ref = newSV(0);
425 0 obj = newSVrv(obj_ref, "Math::Float128");
426  
427 0 *f = crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
428  
429 0 sv_setiv(obj, INT2PTR(IV,f));
430 0 SvREADONLY_on(obj);
431 0 return obj_ref;
432 }
433  
434 1 void real_cq2str(pTHX_ SV * op) {
435 1 dXSARGS;
436 float128 t;
437 char * buffer;
438  
439 1 ▶ if(sv_isobject(op)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(op)) { 1 0 1
440 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(op)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
441 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
442 1 ▶ EXTEND(SP, 1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 1); 0 1 1
443 1 t = crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
444  
445 1 Newx(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, char);
446 1 ▶ if(buffer == NULL) croak("Failed to allocate memory in real_cq2str");
Branch: 1 branch
BranchTrueFalseTotal
if(buffer == NULL) croak("Failed to allocate memory in real_cq2str"); 0 1 1
447 1 quadmath_snprintf(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe", _MATH_COMPLEX_C_Q_DIGITS - 1, t);
448 1 ST(0) = sv_2mortal(newSVpv(buffer, 0));
449 1 Safefree(buffer);
450 1 XSRETURN(1);
451 }
452 0 else croak("Invalid object supplied to Math::Complex_C::Q::real_cq2str function");
453 }
454 0 else croak("Invalid argument supplied to Math::Complex_C::Q::real_cq2str function");
455 }
456  
457 60 SV * imag_cq(pTHX_ SV * op) {
458 60 return newSVnv(cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))))));
459 }
460  
461 0 SV * imag_cq2F(pTHX_ SV * op) {
462 float128 * f;
463 SV * obj_ref, * obj;
464  
465 0 Newx(f, 1, float128);
466 0 ▶ if(f == NULL) croak("Failed to allocate memory in imag_cq2F function");
Branch: 1 branch
BranchTrueFalseTotal
if(f == NULL) croak("Failed to allocate memory in imag_cq2F function"); 0 0 0
467  
468 0 obj_ref = newSV(0);
469 0 obj = newSVrv(obj_ref, "Math::Float128");
470  
471 0 *f = cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
472  
473 0 sv_setiv(obj, INT2PTR(IV,f));
474 0 SvREADONLY_on(obj);
475 0 return obj_ref;
476 }
477  
478 1 void imag_cq2str(pTHX_ SV * op) {
479 1 dXSARGS;
480 float128 t;
481 char * buffer;
482  
483 1 ▶ if(sv_isobject(op)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(op)) { 1 0 1
484 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(op)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
485 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
486 1 ▶ EXTEND(SP, 1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 1); 0 1 1
487 1 t = cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
488  
489 1 Newx(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, char);
490 1 ▶ if(buffer == NULL) croak("Failed to allocate memory in imag_cq2str");
Branch: 1 branch
BranchTrueFalseTotal
if(buffer == NULL) croak("Failed to allocate memory in imag_cq2str"); 0 1 1
491 1 quadmath_snprintf(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe", _MATH_COMPLEX_C_Q_DIGITS - 1, t);
492 1 ST(0) = sv_2mortal(newSVpv(buffer, 0));
493 1 Safefree(buffer);
494 1 XSRETURN(1);
495 }
496 0 else croak("Invalid object supplied to Math::Complex_C::Q::imag_cq2str function");
497 }
498 0 else croak("Invalid argument supplied to Math::Complex_C::Q::imag_cq2str function");
499 }
500  
501 1 SV * arg_cq(pTHX_ SV * op) {
502 1 return newSVnv(cargq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))))));
503 }
504  
505 0 SV * arg_cq2F(pTHX_ SV * op) {
506 float128 * f;
507 SV * obj_ref, * obj;
508  
509 0 Newx(f, 1, float128);
510 0 ▶ if(f == NULL) croak("Failed to allocate memory in arg_cq2F function");
Branch: 1 branch
BranchTrueFalseTotal
if(f == NULL) croak("Failed to allocate memory in arg_cq2F function"); 0 0 0
511  
512 0 obj_ref = newSV(0);
513 0 obj = newSVrv(obj_ref, "Math::Float128");
514  
515 0 *f = cargq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
516  
517 0 sv_setiv(obj, INT2PTR(IV,f));
518 0 SvREADONLY_on(obj);
519 0 return obj_ref;
520 }
521  
522 1 void arg_cq2str(pTHX_ SV * op) {
523 1 dXSARGS;
524 float128 t;
525 char * buffer;
526  
527 1 ▶ if(sv_isobject(op)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(op)) { 1 0 1
528 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(op)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
529 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
530 1 ▶ EXTEND(SP, 1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 1); 0 1 1
531 1 t = cargq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
532  
533 1 Newx(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, char);
534 1 ▶ if(buffer == NULL) croak("Failed to allocate memory in arg_cq2str");
Branch: 1 branch
BranchTrueFalseTotal
if(buffer == NULL) croak("Failed to allocate memory in arg_cq2str"); 0 1 1
535 1 quadmath_snprintf(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe", _MATH_COMPLEX_C_Q_DIGITS - 1, t);
536 1 ST(0) = sv_2mortal(newSVpv(buffer, 0));
537 1 Safefree(buffer);
538 1 XSRETURN(1);
539 }
540 0 else croak("Invalid object supplied to Math::Complex_C::Q::arg_cq2str function");
541 }
542 0 else croak("Invalid argument supplied to Math::Complex_C::Q::arg_cq2str function");
543 }
544  
545 1 SV * abs_cq(pTHX_ SV * op) {
546 1 return newSVnv(cabsq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))))));
547 }
548  
549 0 SV * abs_cq2F(pTHX_ SV * op) {
550 float128 * f;
551 SV * obj_ref, * obj;
552  
553 0 Newx(f, 1, float128);
554 0 ▶ if(f == NULL) croak("Failed to allocate memory in cabs_cq2F function");
Branch: 1 branch
BranchTrueFalseTotal
if(f == NULL) croak("Failed to allocate memory in cabs_cq2F function"); 0 0 0
555  
556 0 obj_ref = newSV(0);
557 0 obj = newSVrv(obj_ref, "Math::Float128");
558  
559 0 *f = cabsq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
560  
561 0 sv_setiv(obj, INT2PTR(IV,f));
562 0 SvREADONLY_on(obj);
563 0 return obj_ref;
564 }
565  
566 1 void abs_cq2str(pTHX_ SV * op) {
567 1 dXSARGS;
568 float128 t;
569 char * buffer;
570  
571 1 ▶ if(sv_isobject(op)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(op)) { 1 0 1
572 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(op)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(op))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(op))); 0 1 1
573 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
574 1 ▶ EXTEND(SP, 1);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 1); 0 1 1
575 1 t = cabsq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
576  
577 1 Newx(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, char);
578 1 ▶ if(buffer == NULL) croak("Failed to allocate memory in arg_cq2str");
Branch: 1 branch
BranchTrueFalseTotal
if(buffer == NULL) croak("Failed to allocate memory in arg_cq2str"); 0 1 1
579 1 quadmath_snprintf(buffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe", _MATH_COMPLEX_C_Q_DIGITS - 1, t);
580 1 ST(0) = sv_2mortal(newSVpv(buffer, 0));
581 1 Safefree(buffer);
582 1 XSRETURN(1);
583 }
584 0 else croak("Invalid object supplied to Math::Complex_C::Q::abs_cq2str function");
585 }
586 0 else croak("Invalid argument supplied to Math::Complex_C::Q::abs_cq2str function");
587 }
588  
589 1 void conj_cq(pTHX_ SV * rop, SV * op) {
590 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = conjq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
591 1 }
592  
593 1 void acos_cq(pTHX_ SV * rop, SV * op) {
594 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = cacosq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
595 1 }
596  
597 1 void asin_cq(pTHX_ SV * rop, SV * op) {
598 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = casinq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
599 1 }
600  
601 1 void atan_cq(pTHX_ SV * rop, SV * op) {
602 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = catanq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
603 1 }
604  
605 1 void cos_cq(pTHX_ SV * rop, SV * op) {
606 #ifdef MINGW_W64_BUGGY
607 croak("cos_cq not implemented for mingw-w64 compilers");
608 #else
609 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = ccosq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
610 #endif
611 1 }
612  
613 1 void sin_cq(pTHX_ SV * rop, SV * op) {
614 #ifdef MINGW_W64_BUGGY
615 croak("sin_cq not implemented for mingw-w64 compilers");
616 #else
617 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = csinq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
618 #endif
619 1 }
620  
621 1 void tan_cq(pTHX_ SV * rop, SV * op) {
622 #if defined(MINGW_W64_BUGGY)
623 croak("tan_cq not implemented for mingw-w64 compilers");
624 #elif defined(GCC_TAN_BUG)
625 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = csinq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))))) /
626 ccosq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
627 #else
628 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = ctanq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
629 #endif
630 1 }
631  
632 1 void acosh_cq(pTHX_ SV * rop, SV * op) {
633 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = cacoshq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
634 1 }
635  
636 1 void asinh_cq(pTHX_ SV * rop, SV * op) {
637 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = casinhq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
638 1 }
639  
640 1 void atanh_cq(pTHX_ SV * rop, SV * op) {
641 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = catanhq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
642 1 }
643  
644 1 void cosh_cq(pTHX_ SV * rop, SV * op) {
645 #ifdef MINGW_W64_BUGGY
646 croak("cosh_cq not implemented for mingw-w64 compilers");
647 #else
648 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = ccoshq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
649 #endif
650 1 }
651  
652 1 void sinh_cq(pTHX_ SV * rop, SV * op) {
653 #ifdef MINGW_W64_BUGGY
654 croak("sinh_cq not implemented for mingw-w64 compilers");
655 #else
656 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = csinhq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
657 #endif
658 1 }
659  
660 1 void tanh_cq(pTHX_ SV * rop, SV * op) {
661 #ifdef MINGW_W64_BUGGY
662 croak("tanh_cq not implemented for mingw-w64 compilers");
663 #elif defined(GCC_TAN_BUG)
664 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = csinhq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op))))) /
665 ccoshq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
666 #else
667 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = ctanhq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
668 #endif
669 1 }
670  
671 1 void exp_cq(pTHX_ SV * rop, SV * op) {
672 #ifdef MINGW_W64_BUGGY /* avoid calling expq() as it's buggy */
673 croak("exp_cq not implemented for mingw-w64 compilers");
674 #else
675 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = cexpq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
676 #endif
677 1 }
678  
679 1 void log_cq(pTHX_ SV * rop, SV * op) {
680 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = clogq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
681 1 }
682  
683 1 void sqrt_cq(pTHX_ SV * rop, SV * op) {
684 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = csqrtq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
685 1 }
686  
687 6 void proj_cq(pTHX_ SV * rop, SV * op) {
688 6 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = cprojq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))));
689 6 }
690  
691 1 void pow_cq(pTHX_ SV * rop, SV * op, SV * exp) {
692 #ifdef MINGW_W64_BUGGY
693 croak("pow_cq not implemented for mingw-w64 compilers");
694 #else
695 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))) = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(op)))),
696 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(exp)))));
697 #endif
698 1 }
699  
700 4 SV * _overload_true(pTHX_ SV * rop, SV * second, SV * third) {
701 6 if (_is_nan(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))))) &&
702 4 _is_nan(cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop))))))) return newSVuv(0);
703 2 if(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop))))) ||
704 2 cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))))) return newSVuv(1);
705 0 return newSVuv(0);
706 }
707  
708 8 SV * _overload_not(pTHX_ SV * rop, SV * second, SV * third) {
709 12 if (_is_nan(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))))) &&
710 8 _is_nan(cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop))))))) return newSVuv(1);
711 4 if(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop))))) ||
712 4 cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop)))))) return newSVuv(0);
713 0 return newSVuv(1);
714 }
715  
716 37 SV * _overload_equiv(pTHX_ SV * a, SV * b, SV * third) {
717 37 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 1 36 37
718 2 if((float128)SvUVX(b) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
719 2 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(1);
720 0 return newSVuv(0);
721 }
722 36 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 0 36 36
723 0 if((float128)SvIVX(b) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
724 0 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(1);
725 0 return newSVuv(0);
726 }
727 36 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 0 36 36
728 0 if((float128)SvNVX(b) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
729 0 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(1);
730 0 return newSVuv(0);
731 }
732  
733 36 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 2 34 36
734 2 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 2 2
735 3 if(strtoflt128(SvPV_nolen(b), NULL) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
736 2 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(1);
737 1 return newSVuv(0);
738 }
739  
740 34 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 34 0 34
741 34 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 34 0 34
const char *h = HvNAME(SvSTASH(SvRV(b))); 34 0 34
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 34 34
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 34 0 34
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 34 34
742 34 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 34 0 34
743 67 if(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))))) &&
744 33 cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))))))
745 33 return newSVuv(1);
746 1 return newSVuv(0);
747 }
748 }
749  
750 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_equiv function");
751 }
752  
753 7 SV * _overload_not_equiv(pTHX_ SV * a, SV * b, SV * third) {
754 7 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 7 7
755 0 if((float128)SvUVX(b) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
756 0 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(0);
757 0 return newSVuv(1);
758 }
759 7 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 0 7 7
760 0 if((float128)SvIVX(b) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
761 0 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(0);
762 0 return newSVuv(1);
763 }
764 7 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 0 7 7
765 0 if((float128)SvNVX(b) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
766 0 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(0);
767 0 return newSVuv(1);
768 }
769 7 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 2 5 7
770 2 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 2 2
771 3 if(strtoflt128(SvPV_nolen(b), NULL) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) &&
772 2 0.0Q == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))))) return newSVuv(0);
773 1 return newSVuv(1);
774 }
775 5 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 5 0 5
776 5 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 5 0 5
const char *h = HvNAME(SvSTASH(SvRV(b))); 5 0 5
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 5 5
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 5 0 5
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 5 5
777 5 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 5 0 5
778 5 if(crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) == crealq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))))) &&
779 0 cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))))) == cimagq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))))))
780 0 return newSVuv(0);
781 5 return newSVuv(1);
782 }
783 }
784  
785 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_not_equiv function");
786 }
787  
788  
789 5 SV * _overload_pow(pTHX_ SV * a, SV * b, SV * third) {
790 #ifdef MINGW_W64_BUGGY
791 croak("** (pow) not overloaded for mingw-w64 compilers");
792 #else
793 MATH_COMPLEX *pc, t;
794 SV * obj_ref, * obj;
795  
796 5 New(42, pc, 1, MATH_COMPLEX);
797 5 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_pow function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_pow function"); 0 5 5
798  
799 5 obj_ref = newSV(0);
800 5 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
801  
802 5 sv_setiv(obj, INT2PTR(IV,pc));
803 5 SvREADONLY_on(obj);
804 5 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 5 5
805 0 __real__ t = (float128)SvUVX(b);
806 0 __imag__ t = 0.0Q;
807 0 *pc = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
808 0 return obj_ref;
809 }
810 5 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 3 2 5
811 3 __real__ t = (float128)SvIVX(b);
812 3 __imag__ t = 0.0Q;
813 3 *pc = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
814 3 return obj_ref;
815 }
816 2 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 1 2
817 1 __real__ t = (float128)SvNVX(b);
818 1 __imag__ t = 0.0Q;
819 1 *pc = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
820 1 return obj_ref;
821 }
822 1 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 0 1 1
823 0 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 0 0
824 0 __real__ t = strtoflt128(SvPV_nolen(b), NULL);
825 0 __imag__ t = 0.0Q;
826 0 *pc = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
827 0 return obj_ref;
828 }
829 1 ▶ else if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
else if(sv_isobject(b)) { 1 0 1
830 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
831 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
832 1 *pc = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b)))));
833 1 return obj_ref;
834 }
835 }
836 0 else croak("Invalid argument supplied to Math::Complex_C::Q::_overload_pow function");
837 #endif
838 0 }
839  
840 5 SV * _overload_mul(pTHX_ SV * a, SV * b, SV * third) {
841 MATH_COMPLEX *pc;
842 SV * obj_ref, * obj;
843  
844 5 New(42, pc, 1, MATH_COMPLEX);
845 5 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_mul function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_mul function"); 0 5 5
846  
847 5 obj_ref = newSV(0);
848 5 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
849  
850 5 sv_setiv(obj, INT2PTR(IV,pc));
851 5 SvREADONLY_on(obj);
852  
853 5 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 5 5
854 0 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) * (float128)SvUVX(b);
855 0 return obj_ref;
856 }
857  
858 5 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 3 5
859 2 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) * (float128)SvIVX(b);
860 2 return obj_ref;
861 }
862  
863 3 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 2 3
864 1 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) * (float128)SvNVX(b);
865 1 return obj_ref;
866 }
867 2 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 1 1 2
868 1 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 1 1
869 2 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) * strtoflt128(SvPV_nolen(b), NULL);
870 1 return obj_ref;
871 }
872 1 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 1 0 1
873 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
874 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
875 1 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) * *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
876 1 return obj_ref;
877 }
878 }
879  
880 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_mul function");
881 }
882  
883 5 SV * _overload_add(pTHX_ SV * a, SV * b, SV * third) {
884 MATH_COMPLEX *pc;
885 SV * obj_ref, * obj;
886  
887 5 New(42, pc, 1, MATH_COMPLEX);
888 5 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_add function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_add function"); 0 5 5
889  
890 5 obj_ref = newSV(0);
891 5 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
892  
893 5 sv_setiv(obj, INT2PTR(IV,pc));
894 5 SvREADONLY_on(obj);
895  
896 5 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 5 5
897 0 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) + (float128)SvUVX(b);
898 0 return obj_ref;
899 }
900  
901 5 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 3 5
902 2 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) + (float128)SvIVX(b);
903 2 return obj_ref;
904 }
905  
906 3 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 2 3
907 1 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) + (float128)SvNVX(b);
908 1 return obj_ref;
909 }
910 2 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 1 1 2
911 1 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 1 1
912 2 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) + strtoflt128(SvPV_nolen(b), NULL);
913 1 return obj_ref;
914 }
915 1 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 1 0 1
916 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
917 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
918 1 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) + *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
919 1 return obj_ref;
920 }
921 }
922  
923 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_add function");
924 }
925  
926 7 SV * _overload_div(pTHX_ SV * a, SV * b, SV * third) {
927 MATH_COMPLEX *pc;
928 SV * obj_ref, * obj;
929  
930 7 New(42, pc, 1, MATH_COMPLEX);
931 7 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_div function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_div function"); 0 7 7
932  
933 7 obj_ref = newSV(0);
934 7 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
935  
936 7 sv_setiv(obj, INT2PTR(IV,pc));
937 7 SvREADONLY_on(obj);
938  
939 7 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 7 7
940 0 ▶ if(third == &PL_sv_yes) *pc = (float128)SvUVX(b) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = (float128)SvUVX(b) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 0 0 0
941 0 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) / (float128)SvUVX(b);
942 0 return obj_ref;
943 }
944  
945 7 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 5 7
946 2 ▶ if(third == &PL_sv_yes) *pc = (float128)SvIVX(b) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = (float128)SvIVX(b) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 0 2 2
947 2 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) / (float128)SvIVX(b);
948 2 return obj_ref;
949 }
950  
951 5 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 4 5
952 1 ▶ if(third == &PL_sv_yes) *pc = (float128)SvNVX(b) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = (float128)SvNVX(b) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 0 1 1
953 1 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) / (float128)SvNVX(b);
954 1 return obj_ref;
955 }
956 4 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 2 2 4
957 2 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 2 2
958 3 ▶ if(third == &PL_sv_yes) *pc = strtoflt128(SvPV_nolen(b), NULL) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = strtoflt128(SvPV_nolen(b), NULL) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 1 1 2
959 2 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) / strtoflt128(SvPV_nolen(b), NULL);
960 2 return obj_ref;
961 }
962 2 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 2 0 2
963 2 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 2 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 2 2
964 2 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 2 0 2
965 2 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) / *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
966 2 return obj_ref;
967 }
968 }
969  
970 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_div function");
971 }
972  
973 6 SV * _overload_sub(pTHX_ SV * a, SV * b, SV * third) {
974 MATH_COMPLEX *pc;
975 SV * obj_ref, * obj;
976  
977 6 New(42, pc, 1, MATH_COMPLEX);
978 6 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_sub function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_sub function"); 0 6 6
979  
980 6 obj_ref = newSV(0);
981 6 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
982  
983 6 sv_setiv(obj, INT2PTR(IV,pc));
984 6 SvREADONLY_on(obj);
985  
986 6 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 6 6
987 0 ▶ if(third == &PL_sv_yes) *pc = (float128)SvUVX(b) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = (float128)SvUVX(b) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 0 0 0
988 0 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) - (float128)SvUVX(b);
989 0 return obj_ref;
990 }
991  
992 6 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 4 6
993 2 ▶ if(third == &PL_sv_yes) *pc = (float128)SvIVX(b) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = (float128)SvIVX(b) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 0 2 2
994 2 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) - (float128)SvIVX(b);
995 2 return obj_ref;
996 }
997  
998 4 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 3 4
999 1 ▶ if(third == &PL_sv_yes) *pc = (float128)SvNVX(b) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = (float128)SvNVX(b) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 0 1 1
1000 1 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) - (float128)SvNVX(b);
1001 1 return obj_ref;
1002 }
1003 3 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 2 1 3
1004 2 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 2 2
1005 3 ▶ if(third == &PL_sv_yes) *pc = strtoflt128(SvPV_nolen(b), NULL) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
Branch: 1 branch
BranchTrueFalseTotal
if(third == &PL_sv_yes) *pc = strtoflt128(SvPV_nolen(b), NULL) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))); 1 1 2
1006 2 else *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) - strtoflt128(SvPV_nolen(b), NULL);
1007 2 return obj_ref;
1008 }
1009 1 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 1 0 1
1010 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
1011 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
1012 1 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) - *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
1013 1 return obj_ref;
1014 }
1015 }
1016  
1017 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_sub function");
1018 }
1019  
1020 1 SV * _overload_sqrt(pTHX_ SV * a, SV * b, SV * third) {
1021 MATH_COMPLEX *pc;
1022 SV * obj_ref, * obj;
1023  
1024 1 New(42, pc, 1, MATH_COMPLEX);
1025 1 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_sqrt function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_sqrt function"); 0 1 1
1026  
1027 1 obj_ref = newSV(0);
1028 1 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1029  
1030 1 *pc = csqrtq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))));
1031  
1032 1 sv_setiv(obj, INT2PTR(IV,pc));
1033 1 SvREADONLY_on(obj);
1034 1 return obj_ref;
1035 }
1036  
1037 4 SV * _overload_pow_eq(pTHX_ SV * a, SV * b, SV * third) {
1038 #ifdef MINGW_W64_BUGGY
1039 croak("**= (pow-equal) not overloaded for mingw-w64 compilers");
1040 #else
1041 MATH_COMPLEX t;
1042 4 SvREFCNT_inc(a);
1043  
1044 4 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 4 4
1045 0 __real__ t = (float128)SvUVX(b);
1046 0 __imag__ t = 0.0Q;
1047 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
1048 0 return a;
1049 }
1050 4 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 3 1 4
1051 3 __real__ t = (float128)SvIVX(b);
1052 3 __imag__ t = 0.0Q;
1053 3 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
1054 3 return a;
1055 }
1056 1 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 0 1
1057 1 __real__ t = (float128)SvNVX(b);
1058 1 __imag__ t = 0.0Q;
1059 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
1060 1 return a;
1061 }
1062 0 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 0 0 0
1063 0 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 0 0
1064 0 __real__ t = strtoflt128(SvPV_nolen(b), NULL);
1065 0 __imag__ t = 0.0Q;
1066 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))), t);
1067 0 return a;
1068 }
1069 0 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 0 0 0
1070 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
1071 0 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 0 0 0
1072 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) = cpowq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))),
1073 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b)))));
1074 0 return a;
1075 }
1076 }
1077 0 SvREFCNT_dec(a);
1078 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_pow_eq function");
1079 #endif
1080 }
1081  
1082 7 SV * _overload_mul_eq(pTHX_ SV * a, SV * b, SV * third) {
1083 7 SvREFCNT_inc(a);
1084  
1085 7 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 7 7
1086 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) *= (float128)SvUVX(b);
1087 0 return a;
1088 }
1089  
1090 7 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 5 7
1091 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) *= (float128)SvIVX(b);
1092 2 return a;
1093 }
1094  
1095 5 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 4 5
1096 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) *= (float128)SvNVX(b);
1097 1 return a;
1098 }
1099  
1100 4 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 2 2 4
1101 2 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 1 1 2
1102 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) *= strtoflt128(SvPV_nolen(b), NULL);
1103 2 return a;
1104 }
1105  
1106 2 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 2 0 2
1107 2 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 2 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 2 2
1108 2 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 2 0 2
1109 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) *= *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
1110 2 return a;
1111 }
1112 }
1113  
1114 0 SvREFCNT_dec(a);
1115 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_mul_eq function");
1116 }
1117  
1118 6 SV * _overload_add_eq(pTHX_ SV * a, SV * b, SV * third) {
1119 6 SvREFCNT_inc(a);
1120  
1121 6 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 6 6
1122 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) += (float128)SvUVX(b);
1123 0 return a;
1124 }
1125  
1126 6 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 4 6
1127 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) += (float128)SvIVX(b);
1128 2 return a;
1129 }
1130  
1131 4 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 3 4
1132 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) += (float128)SvNVX(b);
1133 1 return a;
1134 }
1135  
1136 3 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 1 2 3
1137 1 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 1 1
1138 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) += strtoflt128(SvPV_nolen(b), NULL);
1139 1 return a;
1140 }
1141  
1142 2 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 2 0 2
1143 2 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 2 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 2 0 2
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 2 2
1144 2 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 2 0 2
1145 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) += *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
1146 2 return a;
1147 }
1148 }
1149  
1150 0 SvREFCNT_dec(a);
1151 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_add_eq function");
1152 }
1153  
1154 5 SV * _overload_div_eq(pTHX_ SV * a, SV * b, SV * third) {
1155 5 SvREFCNT_inc(a);
1156  
1157 5 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 5 5
1158 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) /= (float128)SvUVX(b);
1159 0 return a;
1160 }
1161  
1162 5 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 3 5
1163 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) /= (float128)SvIVX(b);
1164 2 return a;
1165 }
1166  
1167 3 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 2 3
1168 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) /= (float128)SvNVX(b);
1169 1 return a;
1170 }
1171  
1172 2 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 1 1 2
1173 1 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 1 1
1174 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) /= strtoflt128(SvPV_nolen(b), NULL);
1175 1 return a;
1176 }
1177  
1178 1 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 1 0 1
1179 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
1180 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
1181 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) /= *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
1182 1 return a;
1183 }
1184 }
1185  
1186 0 SvREFCNT_dec(a);
1187 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_div_eq function");
1188 }
1189  
1190 5 SV * _overload_sub_eq(pTHX_ SV * a, SV * b, SV * third) {
1191 5 SvREFCNT_inc(a);
1192  
1193 5 ▶ if(SvUOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(b)) { 0 5 5
1194 0 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) -= (float128)SvUVX(b);
1195 0 return a;
1196 }
1197  
1198 5 ▶ if(SvIOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(b)) { 2 3 5
1199 2 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) -= (float128)SvIVX(b);
1200 2 return a;
1201 }
1202  
1203 3 ▶ if(SvNOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(b)) { 1 2 3
1204 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) -= (float128)SvNVX(b);
1205 1 return a;
1206 }
1207  
1208 2 ▶ if(SvPOK(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(b)) { 1 1 2
1209 1 ▶ if(!looks_like_number(b)) nnum++;
Branch: 1 branch
BranchTrueFalseTotal
if(!looks_like_number(b)) nnum++; 0 1 1
1210 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) -= strtoflt128(SvPV_nolen(b), NULL);
1211 1 return a;
1212 }
1213  
1214 1 ▶ if(sv_isobject(b)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(b)) { 1 0 1
1215 1 ▶ const char *h = HvNAME(SvSTASH(SvRV(b)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(b))); 1 0 1
const char *h = HvNAME(SvSTASH(SvRV(b))); 0 1 1
1216 1 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 1 0 1
1217 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) -= *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b))));
1218 1 return a;
1219 }
1220 }
1221  
1222 0 SvREFCNT_dec(a);
1223 0 croak("Invalid argument supplied to Math::Complex_C::Q::_overload_sub_eq function");
1224 }
1225  
1226 4 SV * _overload_copy(pTHX_ SV * a, SV * second, SV * third) {
1227  
1228 MATH_COMPLEX *pc;
1229 SV * obj_ref, * obj;
1230  
1231 4 New(42, pc, 1, MATH_COMPLEX);
1232 4 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_copy function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_copy function"); 0 4 4
1233  
1234 4 obj_ref = newSV(0);
1235 4 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1236  
1237 4 __real__ *pc = __real__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
1238 4 __imag__ *pc = __imag__ *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a))));
1239  
1240 4 sv_setiv(obj, INT2PTR(IV,pc));
1241 4 SvREADONLY_on(obj);
1242 4 return obj_ref;
1243  
1244 }
1245  
1246 1 SV * _overload_abs(pTHX_ SV * rop, SV * second, SV * third) {
1247 1 return newSVnv(cabsq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(rop))))));
1248 }
1249  
1250 1 SV * _overload_exp(pTHX_ SV * a, SV * b, SV * third) {
1251 #ifdef MINGW_W64_BUGGY
1252 croak("exp not overloaded with mingw-w64 compilers");
1253 #else
1254 MATH_COMPLEX *pc;
1255 SV * obj_ref, * obj;
1256  
1257 1 New(42, pc, 1, MATH_COMPLEX);
1258 1 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_exp function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_exp function"); 0 1 1
1259  
1260 1 obj_ref = newSV(0);
1261 1 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1262  
1263 1 *pc = cexpq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))));
1264  
1265 1 sv_setiv(obj, INT2PTR(IV,pc));
1266 1 SvREADONLY_on(obj);
1267 1 return obj_ref;
1268 #endif
1269 }
1270  
1271 1 SV * _overload_log(pTHX_ SV * a, SV * b, SV * third) {
1272 MATH_COMPLEX *pc;
1273 SV * obj_ref, * obj;
1274  
1275 1 New(42, pc, 1, MATH_COMPLEX);
1276 1 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_log function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_log function"); 0 1 1
1277  
1278 1 obj_ref = newSV(0);
1279 1 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1280  
1281 1 *pc = clogq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))));
1282  
1283 1 sv_setiv(obj, INT2PTR(IV,pc));
1284 1 SvREADONLY_on(obj);
1285 1 return obj_ref;
1286 }
1287  
1288 1 SV * _overload_sin(pTHX_ SV * a, SV * b, SV * third) {
1289 #ifdef MINGW_W64_BUGGY
1290 croak("sin not overloaded for mingw-w64 compilers");
1291 #else
1292 MATH_COMPLEX *pc;
1293 SV * obj_ref, * obj;
1294  
1295 1 New(42, pc, 1, MATH_COMPLEX);
1296 1 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_sin function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_sin function"); 0 1 1
1297  
1298 1 obj_ref = newSV(0);
1299 1 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1300  
1301 1 *pc = csinq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))));
1302  
1303 1 sv_setiv(obj, INT2PTR(IV,pc));
1304 1 SvREADONLY_on(obj);
1305 1 return obj_ref;
1306 #endif
1307 }
1308  
1309 1 SV * _overload_cos(pTHX_ SV * a, SV * b, SV * third) {
1310 #ifdef MINGW_W64_BUGGY
1311 croak("cos not overloaded for mingw-w64 compilers");
1312 #else
1313 MATH_COMPLEX *pc;
1314 SV * obj_ref, * obj;
1315  
1316 1 New(42, pc, 1, MATH_COMPLEX);
1317 1 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_cos function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_cos function"); 0 1 1
1318  
1319 1 obj_ref = newSV(0);
1320 1 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1321  
1322 1 *pc = ccosq(*(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))));
1323  
1324 1 sv_setiv(obj, INT2PTR(IV,pc));
1325 1 SvREADONLY_on(obj);
1326 1 return obj_ref;
1327 #endif
1328 }
1329  
1330 1 SV * _overload_atan2(pTHX_ SV * a, SV * b, SV * third) {
1331 MATH_COMPLEX *pc;
1332 SV * obj_ref, * obj;
1333  
1334 1 New(42, pc, 1, MATH_COMPLEX);
1335 1 ▶ if(pc == NULL) croak("Failed to allocate memory in _overload_atan2 function");
Branch: 1 branch
BranchTrueFalseTotal
if(pc == NULL) croak("Failed to allocate memory in _overload_atan2 function"); 0 1 1
1336  
1337 1 obj_ref = newSV(0);
1338 1 obj = newSVrv(obj_ref, "Math::Complex_C::Q");
1339  
1340 1 *pc = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(a)))) /
1341 1 *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(b)))) ;
1342  
1343 1 *pc = catanq(*pc);
1344  
1345 1 sv_setiv(obj, INT2PTR(IV,pc));
1346 1 SvREADONLY_on(obj);
1347 1 return obj_ref;
1348 }
1349  
1350 4 SV * get_nanq(pTHX) {
1351 4 return newSVnv(_get_nan());
1352 }
1353  
1354 2 SV * get_infq(pTHX) {
1355 2 return newSVnv(_get_inf());
1356 }
1357  
1358 0 SV * get_neg_infq(pTHX) {
1359 0 return newSVnv(_get_neg_inf());
1360 }
1361  
1362 0 SV * _complex_type(pTHX) {
1363 0 return newSVpv("__complex128", 0);
1364 }
1365  
1366 0 SV * _double_type(pTHX) {
1367 0 return newSVpv("__float128", 0);
1368 }
1369  
1370 0 SV * _get_nv(pTHX_ SV * x) {
1371 0 return newSVnv(SvNV(x));
1372 }
1373  
1374 0 SV * _which_package(pTHX_ SV * b) {
1375 0 ▶ if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0);
Branch: 7 branches
BranchTrueFalseTotal
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
if(sv_isobject(b)) return newSVpv(HvNAME(SvSTASH(SvRV(b))), 0); 0 0 0
1376 0 return newSVpv("Not an object", 0);
1377 }
1378  
1379 0 SV * _wrap_count(pTHX) {
1380 0 return newSVuv(PL_sv_count);
1381 }
1382  
1383 0 SV * _ivsize(pTHX) {
1384 0 return newSViv(sizeof(IV));
1385 }
1386  
1387 0 SV * _nvsize(pTHX) {
1388 0 return newSViv(sizeof(NV));
1389 }
1390  
1391 0 SV * _doublesize(pTHX) {
1392 0 return newSViv(sizeof(double));
1393 }
1394  
1395 0 SV * _longdoublesize(pTHX) {
1396 0 return newSViv(sizeof(long double));
1397 }
1398  
1399 0 SV * _float128size(pTHX) {
1400 0 return newSViv(sizeof(float128));
1401 }
1402  
1403 0 SV * _double_Complexsize(pTHX) {
1404 0 return newSViv(sizeof(double _Complex));
1405 }
1406  
1407 0 SV * _longdouble_Complexsize(pTHX) {
1408 0 return newSViv(sizeof(long double _Complex));
1409 }
1410  
1411  
1412 0 SV * _float128_Complexsize(pTHX) {
1413 0 return newSViv(sizeof(complex128));
1414 }
1415  
1416 13 void _q_to_str(pTHX_ SV * ld) {
1417 13 dXSARGS;
1418 MATH_COMPLEX t;
1419 char *rbuffer;
1420 int query;
1421  
1422 13 ▶ if(sv_isobject(ld)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(ld)) { 13 0 13
1423 13 ▶ const char *h = HvNAME(SvSTASH(SvRV(ld)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(ld))); 13 0 13
const char *h = HvNAME(SvSTASH(SvRV(ld))); 13 0 13
const char *h = HvNAME(SvSTASH(SvRV(ld))); 0 13 13
const char *h = HvNAME(SvSTASH(SvRV(ld))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(ld))); 13 0 13
const char *h = HvNAME(SvSTASH(SvRV(ld))); 0 13 13
1424 13 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 13 0 13
1425 13 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 13 13
1426  
1427 13 t = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(ld))));
1428 /**/
1429 13 Newx(rbuffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, char);
1430 13 ▶ if(rbuffer == NULL) croak("Failed to allocate memory in q_to_str");
Branch: 1 branch
BranchTrueFalseTotal
if(rbuffer == NULL) croak("Failed to allocate memory in q_to_str"); 0 13 13
1431  
1432 13 query = _is_inf(__real__ t);
1433 13 ▶ if(query || _is_nan(__real__ t))
Branch: 2 branches
BranchTrueFalseTotal
if(query || _is_nan(__real__ t)) 11 2 13
if(query || _is_nan(__real__ t)) 5 6 11
1434 9 ▶ sprintf(rbuffer, "%s", query ? query > 0 ? "inf"
Branch: 1 branch
BranchTrueFalseTotal
sprintf(rbuffer, "%s", query ? query > 0 ? "inf" 2 5 7
1435 2 ▶ : "-inf"
Branch: 1 branch
BranchTrueFalseTotal
: "-inf" 1 1 2
1436 : "nan");
1437 else
1438 6 quadmath_snprintf(rbuffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe",
1439 _MATH_COMPLEX_C_Q_DIGITS - 1, __real__ t);
1440  
1441 13 ST(0) = sv_2mortal(newSVpv(rbuffer, 0));
1442  
1443 13 query = _is_inf(__imag__ t);
1444 13 ▶ if(query || _is_nan(__imag__ t))
Branch: 2 branches
BranchTrueFalseTotal
if(query || _is_nan(__imag__ t)) 11 2 13
if(query || _is_nan(__imag__ t)) 5 6 11
1445 9 ▶ sprintf(rbuffer, "%s", query ? query > 0 ? "inf"
Branch: 1 branch
BranchTrueFalseTotal
sprintf(rbuffer, "%s", query ? query > 0 ? "inf" 2 5 7
1446 2 ▶ : "-inf"
Branch: 1 branch
BranchTrueFalseTotal
: "-inf" 1 1 2
1447 : "nan");
1448 else
1449 6 quadmath_snprintf(rbuffer, 15 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe",
1450 _MATH_COMPLEX_C_Q_DIGITS - 1, __imag__ t);
1451  
1452 13 ST(1) = sv_2mortal(newSVpv(rbuffer, 0));
1453 /**/
1454 13 Safefree(rbuffer);
1455 13 XSRETURN(2);
1456 }
1457 0 else croak("q_to_str function needs a Math::Complex_C::Q arg but was supplied with a %s arg", h);
1458 }
1459 0 else croak("Invalid argument supplied to Math::Complex_C::Q::q_to_str function");
1460 }
1461  
1462 3 void _q_to_strp(pTHX_ SV * ld, int decimal_prec) {
1463 3 dXSARGS;
1464 MATH_COMPLEX t;
1465 char *rbuffer;
1466 int query;
1467  
1468 3 ▶ if(decimal_prec < 1)croak("2nd arg (precision) to _q_to_strp must be at least 1");
Branch: 1 branch
BranchTrueFalseTotal
if(decimal_prec < 1)croak("2nd arg (precision) to _q_to_strp must be at least 1"); 0 3 3
1469  
1470 3 ▶ if(sv_isobject(ld)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(ld)) { 3 0 3
1471 3 ▶ const char *h = HvNAME(SvSTASH(SvRV(ld)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(ld))); 3 0 3
const char *h = HvNAME(SvSTASH(SvRV(ld))); 3 0 3
const char *h = HvNAME(SvSTASH(SvRV(ld))); 0 3 3
const char *h = HvNAME(SvSTASH(SvRV(ld))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(ld))); 3 0 3
const char *h = HvNAME(SvSTASH(SvRV(ld))); 0 3 3
1472 3 ▶ if(strEQ(h, "Math::Complex_C::Q")) {
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) { 3 0 3
1473 3 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 3 3
1474 3 t = *(INT2PTR(MATH_COMPLEX *, SvIVX(SvRV(ld))));
1475 /* new */
1476 3 Newx(rbuffer, 12 + decimal_prec, char);
1477 3 ▶ if(rbuffer == NULL) croak("Failed to allocate memory in q_to_strp");
Branch: 1 branch
BranchTrueFalseTotal
if(rbuffer == NULL) croak("Failed to allocate memory in q_to_strp"); 0 3 3
1478  
1479 3 query = _is_inf(__real__ t);
1480 3 ▶ if(query || _is_nan(__real__ t))
Branch: 2 branches
BranchTrueFalseTotal
if(query || _is_nan(__real__ t)) 1 2 3
if(query || _is_nan(__real__ t)) 1 0 1
1481 5 ▶ sprintf(rbuffer, "%s", query ? query > 0 ? "inf"
Branch: 1 branch
BranchTrueFalseTotal
sprintf(rbuffer, "%s", query ? query > 0 ? "inf" 2 1 3
1482 2 ▶ : "-inf"
Branch: 1 branch
BranchTrueFalseTotal
: "-inf" 1 1 2
1483 : "nan");
1484 else
1485 0 quadmath_snprintf(rbuffer, 12 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe",
1486 decimal_prec - 1, __real__ t);
1487  
1488 3 ST(0) = sv_2mortal(newSVpv(rbuffer, 0));
1489  
1490 3 query = _is_inf(__imag__ t);
1491 3 ▶ if(query || _is_nan(__imag__ t))
Branch: 2 branches
BranchTrueFalseTotal
if(query || _is_nan(__imag__ t)) 1 2 3
if(query || _is_nan(__imag__ t)) 1 0 1
1492 5 ▶ sprintf(rbuffer, "%s", query ? query > 0 ? "inf"
Branch: 1 branch
BranchTrueFalseTotal
sprintf(rbuffer, "%s", query ? query > 0 ? "inf" 2 1 3
1493 2 ▶ : "-inf"
Branch: 1 branch
BranchTrueFalseTotal
: "-inf" 1 1 2
1494 : "nan");
1495 else
1496 0 quadmath_snprintf(rbuffer, 12 + _MATH_COMPLEX_C_Q_DIGITS, "%.*Qe",
1497 decimal_prec - 1, __imag__ t);
1498  
1499 3 ST(1) = sv_2mortal(newSVpv(rbuffer, 0));
1500 /**/
1501 /* old
1502 Newx(rbuffer, 12 + decimal_prec, char);
1503 if(rbuffer == NULL) croak("Failed to allocate memory in q_to_strp");
1504  
1505 quadmath_snprintf(rbuffer, 12 + decimal_prec, "%.*Qe", decimal_prec - 1, __real__ t);
1506 ST(0) = sv_2mortal(newSVpv(rbuffer, 0));
1507  
1508 quadmath_snprintf(rbuffer, 12 + decimal_prec, "%.*Qe", decimal_prec - 1, __imag__ t);
1509 ST(1) = sv_2mortal(newSVpv(rbuffer, 0));
1510 */
1511  
1512 3 Safefree(rbuffer);
1513 3 XSRETURN(2);
1514 }
1515 0 else croak("q_to_strp function needs a Math::Complex_C::Q arg but was supplied with a %s arg", h);
1516 }
1517 0 else croak("Invalid argument supplied to Math::Complex_C::Q::q_to_strp function");
1518 }
1519  
1520 0 SV * _LDBL_DIG(pTHX) {
1521 #ifdef LDBL_DIG
1522 0 return newSViv(LDBL_DIG);
1523 #else
1524 return 0;
1525 #endif
1526 }
1527  
1528 0 SV * _FLT128_DIG(pTHX) {
1529 #ifdef FLT128_DIG
1530 0 return newSViv(FLT128_DIG);
1531 #else
1532 return 0;
1533 #endif
1534 }
1535  
1536 0 SV * _get_xs_version(pTHX) {
1537 0 return newSVpv(XS_VERSION, 0);
1538 }
1539  
1540 9 SV * _itsa(pTHX_ SV * a) {
1541 9 ▶ if(SvUOK(a)) return newSVuv(1);
Branch: 1 branch
BranchTrueFalseTotal
if(SvUOK(a)) return newSVuv(1); 0 9 9
1542 9 ▶ if(SvIOK(a)) return newSVuv(2);
Branch: 1 branch
BranchTrueFalseTotal
if(SvIOK(a)) return newSVuv(2); 0 9 9
1543 9 ▶ if(SvNOK(a)) return newSVuv(3);
Branch: 1 branch
BranchTrueFalseTotal
if(SvNOK(a)) return newSVuv(3); 5 4 9
1544 4 ▶ if(SvPOK(a)) return newSVuv(4);
Branch: 1 branch
BranchTrueFalseTotal
if(SvPOK(a)) return newSVuv(4); 4 0 4
1545 0 ▶ if(sv_isobject(a)) {
Branch: 1 branch
BranchTrueFalseTotal
if(sv_isobject(a)) { 0 0 0
1546 0 ▶ const char *h = HvNAME(SvSTASH(SvRV(a)));
Branch: 6 branches
BranchTrueFalseTotal
const char *h = HvNAME(SvSTASH(SvRV(a))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(a))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(a))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(a))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(a))); 0 0 0
const char *h = HvNAME(SvSTASH(SvRV(a))); 0 0 0
1547 0 ▶ if(strEQ(h, "Math::Float128")) return newSVuv(113);
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Float128")) return newSVuv(113); 0 0 0
1548 0 ▶ if(strEQ(h, "Math::Complex_C::Q")) return newSVuv(226);
Branch: 1 branch
BranchTrueFalseTotal
if(strEQ(h, "Math::Complex_C::Q")) return newSVuv(226); 0 0 0
1549 }
1550 0 return newSVuv(0);
1551 }
1552  
1553 21 int _mingw_w64_bug(void) {
1554 #ifdef MINGW_W64_BUGGY
1555 return 1;
1556 #else
1557 21 return 0;
1558 #endif
1559 }
1560  
1561 1 int _gcc_tan_bug(void) {
1562 #if defined(GCC_TAN_BUG)
1563 return 1;
1564 #else
1565 1 return 0;
1566 #endif
1567 }
1568  
1569 4 int nnumflag(void) {
1570 4 return nnum;
1571 }
1572  
1573 1 void clear_nnum(void) {
1574 1 nnum = 0;
1575 1 }
1576  
1577 1 void set_nnum(int x) {
1578 1 nnum = x;
1579 1 }
1580  
1581 0 int _lln(pTHX_ SV * x) {
1582 0 ▶ if(looks_like_number(x)) return 1;
Branch: 1 branch
BranchTrueFalseTotal
if(looks_like_number(x)) return 1; 0 0 0
1583 0 return 0;
1584 }
1585  
1586  
1587  
1588  
1589  
1590  
1591 MODULE = Math::Complex_C::Q PACKAGE = Math::Complex_C::Q
1592  
1593 PROTOTYPES: DISABLE
1594  
1595  
1596 void
1597 q_set_prec (x)
1598 int x
1599 PREINIT:
1600 I32* temp;
1601 PPCODE:
1602 2 temp = PL_markstack_ptr++;
1603 2 q_set_prec(x);
1604 2 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 2 0 2
1605 /* truly void, because dXSARGS not invoked */
1606 2 PL_markstack_ptr = temp;
1607 2 XSRETURN_EMPTY; /* return empty stack */
1608 }
1609 /* must have used dXSARGS; list context implied */
1610 0 return; /* assume stack size is correct */
1611  
1612 int
1613 q_get_prec ()
1614  
1615  
1616 int
1617 is_nanq (a)
1618 SV * a
1619 CODE:
1620 2 RETVAL = is_nanq (aTHX_ a);
1621 OUTPUT: RETVAL
1622  
1623 int
1624 is_infq (a)
1625 SV * a
1626 CODE:
1627 6 RETVAL = is_infq (aTHX_ a);
1628 OUTPUT: RETVAL
1629  
1630 SV *
1631 create_cq ()
1632 CODE:
1633 63 RETVAL = create_cq (aTHX);
1634 OUTPUT: RETVAL
1635  
1636  
1637 void
1638 assign_cq (rop, d1, d2)
1639 SV * rop
1640 SV * d1
1641 SV * d2
1642 PREINIT:
1643 I32* temp;
1644 PPCODE:
1645 66 temp = PL_markstack_ptr++;
1646 66 assign_cq(aTHX_ rop, d1, d2);
1647 66 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 66 0 66
1648 /* truly void, because dXSARGS not invoked */
1649 66 PL_markstack_ptr = temp;
1650 66 XSRETURN_EMPTY; /* return empty stack */
1651 }
1652 /* must have used dXSARGS; list context implied */
1653 0 return; /* assume stack size is correct */
1654  
1655 void
1656 set_real_cq (rop, d1)
1657 SV * rop
1658 SV * d1
1659 PREINIT:
1660 I32* temp;
1661 PPCODE:
1662 4 temp = PL_markstack_ptr++;
1663 4 set_real_cq(aTHX_ rop, d1);
1664 4 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 4 0 4
1665 /* truly void, because dXSARGS not invoked */
1666 4 PL_markstack_ptr = temp;
1667 4 XSRETURN_EMPTY; /* return empty stack */
1668 }
1669 /* must have used dXSARGS; list context implied */
1670 0 return; /* assume stack size is correct */
1671  
1672 void
1673 set_imag_cq (rop, d2)
1674 SV * rop
1675 SV * d2
1676 PREINIT:
1677 I32* temp;
1678 PPCODE:
1679 4 temp = PL_markstack_ptr++;
1680 4 set_imag_cq(aTHX_ rop, d2);
1681 4 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 4 0 4
1682 /* truly void, because dXSARGS not invoked */
1683 4 PL_markstack_ptr = temp;
1684 4 XSRETURN_EMPTY; /* return empty stack */
1685 }
1686 /* must have used dXSARGS; list context implied */
1687 0 return; /* assume stack size is correct */
1688  
1689 void
1690 F2cq (rop, d1, d2)
1691 SV * rop
1692 SV * d1
1693 SV * d2
1694 PREINIT:
1695 I32* temp;
1696 PPCODE:
1697 0 temp = PL_markstack_ptr++;
1698 0 F2cq(aTHX_ rop, d1, d2);
1699 0 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 0 0
1700 /* truly void, because dXSARGS not invoked */
1701 0 PL_markstack_ptr = temp;
1702 0 XSRETURN_EMPTY; /* return empty stack */
1703 }
1704 /* must have used dXSARGS; list context implied */
1705 0 return; /* assume stack size is correct */
1706  
1707 void
1708 cq2F (rop1, rop2, op)
1709 SV * rop1
1710 SV * rop2
1711 SV * op
1712 PREINIT:
1713 I32* temp;
1714 PPCODE:
1715 0 temp = PL_markstack_ptr++;
1716 0 cq2F(aTHX_ rop1, rop2, op);
1717 0 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 0 0
1718 /* truly void, because dXSARGS not invoked */
1719 0 PL_markstack_ptr = temp;
1720 0 XSRETURN_EMPTY; /* return empty stack */
1721 }
1722 /* must have used dXSARGS; list context implied */
1723 0 return; /* assume stack size is correct */
1724  
1725 void
1726 mul_cq (rop, op1, op2)
1727 SV * rop
1728 SV * op1
1729 SV * op2
1730 PREINIT:
1731 I32* temp;
1732 PPCODE:
1733 1 temp = PL_markstack_ptr++;
1734 1 mul_cq(aTHX_ rop, op1, op2);
1735 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1736 /* truly void, because dXSARGS not invoked */
1737 1 PL_markstack_ptr = temp;
1738 1 XSRETURN_EMPTY; /* return empty stack */
1739 }
1740 /* must have used dXSARGS; list context implied */
1741 0 return; /* assume stack size is correct */
1742  
1743 void
1744 mul_c_nvq (rop, op1, op2)
1745 SV * rop
1746 SV * op1
1747 SV * op2
1748 PREINIT:
1749 I32* temp;
1750 PPCODE:
1751 1 temp = PL_markstack_ptr++;
1752 1 mul_c_nvq(aTHX_ rop, op1, op2);
1753 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1754 /* truly void, because dXSARGS not invoked */
1755 1 PL_markstack_ptr = temp;
1756 1 XSRETURN_EMPTY; /* return empty stack */
1757 }
1758 /* must have used dXSARGS; list context implied */
1759 0 return; /* assume stack size is correct */
1760  
1761 void
1762 mul_c_ivq (rop, op1, op2)
1763 SV * rop
1764 SV * op1
1765 SV * op2
1766 PREINIT:
1767 I32* temp;
1768 PPCODE:
1769 1 temp = PL_markstack_ptr++;
1770 1 mul_c_ivq(aTHX_ rop, op1, op2);
1771 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1772 /* truly void, because dXSARGS not invoked */
1773 1 PL_markstack_ptr = temp;
1774 1 XSRETURN_EMPTY; /* return empty stack */
1775 }
1776 /* must have used dXSARGS; list context implied */
1777 0 return; /* assume stack size is correct */
1778  
1779 void
1780 mul_c_uvq (rop, op1, op2)
1781 SV * rop
1782 SV * op1
1783 SV * op2
1784 PREINIT:
1785 I32* temp;
1786 PPCODE:
1787 1 temp = PL_markstack_ptr++;
1788 1 mul_c_uvq(aTHX_ rop, op1, op2);
1789 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1790 /* truly void, because dXSARGS not invoked */
1791 1 PL_markstack_ptr = temp;
1792 1 XSRETURN_EMPTY; /* return empty stack */
1793 }
1794 /* must have used dXSARGS; list context implied */
1795 0 return; /* assume stack size is correct */
1796  
1797 void
1798 mul_c_pvq (rop, op1, op2)
1799 SV * rop
1800 SV * op1
1801 SV * op2
1802 PREINIT:
1803 I32* temp;
1804 PPCODE:
1805 1 temp = PL_markstack_ptr++;
1806 1 mul_c_pvq(aTHX_ rop, op1, op2);
1807 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1808 /* truly void, because dXSARGS not invoked */
1809 1 PL_markstack_ptr = temp;
1810 1 XSRETURN_EMPTY; /* return empty stack */
1811 }
1812 /* must have used dXSARGS; list context implied */
1813 0 return; /* assume stack size is correct */
1814  
1815 void
1816 div_cq (rop, op1, op2)
1817 SV * rop
1818 SV * op1
1819 SV * op2
1820 PREINIT:
1821 I32* temp;
1822 PPCODE:
1823 1 temp = PL_markstack_ptr++;
1824 1 div_cq(aTHX_ rop, op1, op2);
1825 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1826 /* truly void, because dXSARGS not invoked */
1827 1 PL_markstack_ptr = temp;
1828 1 XSRETURN_EMPTY; /* return empty stack */
1829 }
1830 /* must have used dXSARGS; list context implied */
1831 0 return; /* assume stack size is correct */
1832  
1833 void
1834 div_c_nvq (rop, op1, op2)
1835 SV * rop
1836 SV * op1
1837 SV * op2
1838 PREINIT:
1839 I32* temp;
1840 PPCODE:
1841 1 temp = PL_markstack_ptr++;
1842 1 div_c_nvq(aTHX_ rop, op1, op2);
1843 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1844 /* truly void, because dXSARGS not invoked */
1845 1 PL_markstack_ptr = temp;
1846 1 XSRETURN_EMPTY; /* return empty stack */
1847 }
1848 /* must have used dXSARGS; list context implied */
1849 0 return; /* assume stack size is correct */
1850  
1851 void
1852 div_c_ivq (rop, op1, op2)
1853 SV * rop
1854 SV * op1
1855 SV * op2
1856 PREINIT:
1857 I32* temp;
1858 PPCODE:
1859 1 temp = PL_markstack_ptr++;
1860 1 div_c_ivq(aTHX_ rop, op1, op2);
1861 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1862 /* truly void, because dXSARGS not invoked */
1863 1 PL_markstack_ptr = temp;
1864 1 XSRETURN_EMPTY; /* return empty stack */
1865 }
1866 /* must have used dXSARGS; list context implied */
1867 0 return; /* assume stack size is correct */
1868  
1869 void
1870 div_c_uvq (rop, op1, op2)
1871 SV * rop
1872 SV * op1
1873 SV * op2
1874 PREINIT:
1875 I32* temp;
1876 PPCODE:
1877 1 temp = PL_markstack_ptr++;
1878 1 div_c_uvq(aTHX_ rop, op1, op2);
1879 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1880 /* truly void, because dXSARGS not invoked */
1881 1 PL_markstack_ptr = temp;
1882 1 XSRETURN_EMPTY; /* return empty stack */
1883 }
1884 /* must have used dXSARGS; list context implied */
1885 0 return; /* assume stack size is correct */
1886  
1887 void
1888 div_c_pvq (rop, op1, op2)
1889 SV * rop
1890 SV * op1
1891 SV * op2
1892 PREINIT:
1893 I32* temp;
1894 PPCODE:
1895 1 temp = PL_markstack_ptr++;
1896 1 div_c_pvq(aTHX_ rop, op1, op2);
1897 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1898 /* truly void, because dXSARGS not invoked */
1899 1 PL_markstack_ptr = temp;
1900 1 XSRETURN_EMPTY; /* return empty stack */
1901 }
1902 /* must have used dXSARGS; list context implied */
1903 0 return; /* assume stack size is correct */
1904  
1905 void
1906 add_cq (rop, op1, op2)
1907 SV * rop
1908 SV * op1
1909 SV * op2
1910 PREINIT:
1911 I32* temp;
1912 PPCODE:
1913 1 temp = PL_markstack_ptr++;
1914 1 add_cq(aTHX_ rop, op1, op2);
1915 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1916 /* truly void, because dXSARGS not invoked */
1917 1 PL_markstack_ptr = temp;
1918 1 XSRETURN_EMPTY; /* return empty stack */
1919 }
1920 /* must have used dXSARGS; list context implied */
1921 0 return; /* assume stack size is correct */
1922  
1923 void
1924 add_c_nvq (rop, op1, op2)
1925 SV * rop
1926 SV * op1
1927 SV * op2
1928 PREINIT:
1929 I32* temp;
1930 PPCODE:
1931 1 temp = PL_markstack_ptr++;
1932 1 add_c_nvq(aTHX_ rop, op1, op2);
1933 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1934 /* truly void, because dXSARGS not invoked */
1935 1 PL_markstack_ptr = temp;
1936 1 XSRETURN_EMPTY; /* return empty stack */
1937 }
1938 /* must have used dXSARGS; list context implied */
1939 0 return; /* assume stack size is correct */
1940  
1941 void
1942 add_c_ivq (rop, op1, op2)
1943 SV * rop
1944 SV * op1
1945 SV * op2
1946 PREINIT:
1947 I32* temp;
1948 PPCODE:
1949 1 temp = PL_markstack_ptr++;
1950 1 add_c_ivq(aTHX_ rop, op1, op2);
1951 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1952 /* truly void, because dXSARGS not invoked */
1953 1 PL_markstack_ptr = temp;
1954 1 XSRETURN_EMPTY; /* return empty stack */
1955 }
1956 /* must have used dXSARGS; list context implied */
1957 0 return; /* assume stack size is correct */
1958  
1959 void
1960 add_c_uvq (rop, op1, op2)
1961 SV * rop
1962 SV * op1
1963 SV * op2
1964 PREINIT:
1965 I32* temp;
1966 PPCODE:
1967 1 temp = PL_markstack_ptr++;
1968 1 add_c_uvq(aTHX_ rop, op1, op2);
1969 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1970 /* truly void, because dXSARGS not invoked */
1971 1 PL_markstack_ptr = temp;
1972 1 XSRETURN_EMPTY; /* return empty stack */
1973 }
1974 /* must have used dXSARGS; list context implied */
1975 0 return; /* assume stack size is correct */
1976  
1977 void
1978 add_c_pvq (rop, op1, op2)
1979 SV * rop
1980 SV * op1
1981 SV * op2
1982 PREINIT:
1983 I32* temp;
1984 PPCODE:
1985 1 temp = PL_markstack_ptr++;
1986 1 add_c_pvq(aTHX_ rop, op1, op2);
1987 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
1988 /* truly void, because dXSARGS not invoked */
1989 1 PL_markstack_ptr = temp;
1990 1 XSRETURN_EMPTY; /* return empty stack */
1991 }
1992 /* must have used dXSARGS; list context implied */
1993 0 return; /* assume stack size is correct */
1994  
1995 void
1996 sub_cq (rop, op1, op2)
1997 SV * rop
1998 SV * op1
1999 SV * op2
2000 PREINIT:
2001 I32* temp;
2002 PPCODE:
2003 1 temp = PL_markstack_ptr++;
2004 1 sub_cq(aTHX_ rop, op1, op2);
2005 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2006 /* truly void, because dXSARGS not invoked */
2007 1 PL_markstack_ptr = temp;
2008 1 XSRETURN_EMPTY; /* return empty stack */
2009 }
2010 /* must have used dXSARGS; list context implied */
2011 0 return; /* assume stack size is correct */
2012  
2013 void
2014 sub_c_nvq (rop, op1, op2)
2015 SV * rop
2016 SV * op1
2017 SV * op2
2018 PREINIT:
2019 I32* temp;
2020 PPCODE:
2021 1 temp = PL_markstack_ptr++;
2022 1 sub_c_nvq(aTHX_ rop, op1, op2);
2023 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2024 /* truly void, because dXSARGS not invoked */
2025 1 PL_markstack_ptr = temp;
2026 1 XSRETURN_EMPTY; /* return empty stack */
2027 }
2028 /* must have used dXSARGS; list context implied */
2029 0 return; /* assume stack size is correct */
2030  
2031 void
2032 sub_c_ivq (rop, op1, op2)
2033 SV * rop
2034 SV * op1
2035 SV * op2
2036 PREINIT:
2037 I32* temp;
2038 PPCODE:
2039 1 temp = PL_markstack_ptr++;
2040 1 sub_c_ivq(aTHX_ rop, op1, op2);
2041 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2042 /* truly void, because dXSARGS not invoked */
2043 1 PL_markstack_ptr = temp;
2044 1 XSRETURN_EMPTY; /* return empty stack */
2045 }
2046 /* must have used dXSARGS; list context implied */
2047 0 return; /* assume stack size is correct */
2048  
2049 void
2050 sub_c_uvq (rop, op1, op2)
2051 SV * rop
2052 SV * op1
2053 SV * op2
2054 PREINIT:
2055 I32* temp;
2056 PPCODE:
2057 1 temp = PL_markstack_ptr++;
2058 1 sub_c_uvq(aTHX_ rop, op1, op2);
2059 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2060 /* truly void, because dXSARGS not invoked */
2061 1 PL_markstack_ptr = temp;
2062 1 XSRETURN_EMPTY; /* return empty stack */
2063 }
2064 /* must have used dXSARGS; list context implied */
2065 0 return; /* assume stack size is correct */
2066  
2067 void
2068 sub_c_pvq (rop, op1, op2)
2069 SV * rop
2070 SV * op1
2071 SV * op2
2072 PREINIT:
2073 I32* temp;
2074 PPCODE:
2075 1 temp = PL_markstack_ptr++;
2076 1 sub_c_pvq(aTHX_ rop, op1, op2);
2077 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2078 /* truly void, because dXSARGS not invoked */
2079 1 PL_markstack_ptr = temp;
2080 1 XSRETURN_EMPTY; /* return empty stack */
2081 }
2082 /* must have used dXSARGS; list context implied */
2083 0 return; /* assume stack size is correct */
2084  
2085 void
2086 DESTROY (op)
2087 SV * op
2088 PREINIT:
2089 I32* temp;
2090 PPCODE:
2091 101 temp = PL_markstack_ptr++;
2092 101 DESTROY(aTHX_ op);
2093 101 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 101 0 101
2094 /* truly void, because dXSARGS not invoked */
2095 101 PL_markstack_ptr = temp;
2096 101 XSRETURN_EMPTY; /* return empty stack */
2097 }
2098 /* must have used dXSARGS; list context implied */
2099 0 return; /* assume stack size is correct */
2100  
2101 SV *
2102 real_cq (op)
2103 SV * op
2104 CODE:
2105 69 RETVAL = real_cq (aTHX_ op);
2106 OUTPUT: RETVAL
2107  
2108 SV *
2109 real_cq2F (op)
2110 SV * op
2111 CODE:
2112 0 RETVAL = real_cq2F (aTHX_ op);
2113 OUTPUT: RETVAL
2114  
2115 void
2116 real_cq2str (op)
2117 SV * op
2118 PREINIT:
2119 I32* temp;
2120 PPCODE:
2121 1 temp = PL_markstack_ptr++;
2122 1 real_cq2str(aTHX_ op);
2123 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 1 1
2124 /* truly void, because dXSARGS not invoked */
2125 0 PL_markstack_ptr = temp;
2126 0 XSRETURN_EMPTY; /* return empty stack */
2127 }
2128 /* must have used dXSARGS; list context implied */
2129 1 return; /* assume stack size is correct */
2130  
2131 SV *
2132 imag_cq (op)
2133 SV * op
2134 CODE:
2135 60 RETVAL = imag_cq (aTHX_ op);
2136 OUTPUT: RETVAL
2137  
2138 SV *
2139 imag_cq2F (op)
2140 SV * op
2141 CODE:
2142 0 RETVAL = imag_cq2F (aTHX_ op);
2143 OUTPUT: RETVAL
2144  
2145 void
2146 imag_cq2str (op)
2147 SV * op
2148 PREINIT:
2149 I32* temp;
2150 PPCODE:
2151 1 temp = PL_markstack_ptr++;
2152 1 imag_cq2str(aTHX_ op);
2153 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 1 1
2154 /* truly void, because dXSARGS not invoked */
2155 0 PL_markstack_ptr = temp;
2156 0 XSRETURN_EMPTY; /* return empty stack */
2157 }
2158 /* must have used dXSARGS; list context implied */
2159 1 return; /* assume stack size is correct */
2160  
2161 SV *
2162 arg_cq (op)
2163 SV * op
2164 CODE:
2165 1 RETVAL = arg_cq (aTHX_ op);
2166 OUTPUT: RETVAL
2167  
2168 SV *
2169 arg_cq2F (op)
2170 SV * op
2171 CODE:
2172 0 RETVAL = arg_cq2F (aTHX_ op);
2173 OUTPUT: RETVAL
2174  
2175 void
2176 arg_cq2str (op)
2177 SV * op
2178 PREINIT:
2179 I32* temp;
2180 PPCODE:
2181 1 temp = PL_markstack_ptr++;
2182 1 arg_cq2str(aTHX_ op);
2183 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 1 1
2184 /* truly void, because dXSARGS not invoked */
2185 0 PL_markstack_ptr = temp;
2186 0 XSRETURN_EMPTY; /* return empty stack */
2187 }
2188 /* must have used dXSARGS; list context implied */
2189 1 return; /* assume stack size is correct */
2190  
2191 SV *
2192 abs_cq (op)
2193 SV * op
2194 CODE:
2195 1 RETVAL = abs_cq (aTHX_ op);
2196 OUTPUT: RETVAL
2197  
2198 SV *
2199 abs_cq2F (op)
2200 SV * op
2201 CODE:
2202 0 RETVAL = abs_cq2F (aTHX_ op);
2203 OUTPUT: RETVAL
2204  
2205 void
2206 abs_cq2str (op)
2207 SV * op
2208 PREINIT:
2209 I32* temp;
2210 PPCODE:
2211 1 temp = PL_markstack_ptr++;
2212 1 abs_cq2str(aTHX_ op);
2213 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 1 1
2214 /* truly void, because dXSARGS not invoked */
2215 0 PL_markstack_ptr = temp;
2216 0 XSRETURN_EMPTY; /* return empty stack */
2217 }
2218 /* must have used dXSARGS; list context implied */
2219 1 return; /* assume stack size is correct */
2220  
2221 void
2222 conj_cq (rop, op)
2223 SV * rop
2224 SV * op
2225 PREINIT:
2226 I32* temp;
2227 PPCODE:
2228 1 temp = PL_markstack_ptr++;
2229 1 conj_cq(aTHX_ rop, op);
2230 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2231 /* truly void, because dXSARGS not invoked */
2232 1 PL_markstack_ptr = temp;
2233 1 XSRETURN_EMPTY; /* return empty stack */
2234 }
2235 /* must have used dXSARGS; list context implied */
2236 0 return; /* assume stack size is correct */
2237  
2238 void
2239 acos_cq (rop, op)
2240 SV * rop
2241 SV * op
2242 PREINIT:
2243 I32* temp;
2244 PPCODE:
2245 1 temp = PL_markstack_ptr++;
2246 1 acos_cq(aTHX_ rop, op);
2247 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2248 /* truly void, because dXSARGS not invoked */
2249 1 PL_markstack_ptr = temp;
2250 1 XSRETURN_EMPTY; /* return empty stack */
2251 }
2252 /* must have used dXSARGS; list context implied */
2253 0 return; /* assume stack size is correct */
2254  
2255 void
2256 asin_cq (rop, op)
2257 SV * rop
2258 SV * op
2259 PREINIT:
2260 I32* temp;
2261 PPCODE:
2262 1 temp = PL_markstack_ptr++;
2263 1 asin_cq(aTHX_ rop, op);
2264 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2265 /* truly void, because dXSARGS not invoked */
2266 1 PL_markstack_ptr = temp;
2267 1 XSRETURN_EMPTY; /* return empty stack */
2268 }
2269 /* must have used dXSARGS; list context implied */
2270 0 return; /* assume stack size is correct */
2271  
2272 void
2273 atan_cq (rop, op)
2274 SV * rop
2275 SV * op
2276 PREINIT:
2277 I32* temp;
2278 PPCODE:
2279 1 temp = PL_markstack_ptr++;
2280 1 atan_cq(aTHX_ rop, op);
2281 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2282 /* truly void, because dXSARGS not invoked */
2283 1 PL_markstack_ptr = temp;
2284 1 XSRETURN_EMPTY; /* return empty stack */
2285 }
2286 /* must have used dXSARGS; list context implied */
2287 0 return; /* assume stack size is correct */
2288  
2289 void
2290 cos_cq (rop, op)
2291 SV * rop
2292 SV * op
2293 PREINIT:
2294 I32* temp;
2295 PPCODE:
2296 1 temp = PL_markstack_ptr++;
2297 1 cos_cq(aTHX_ rop, op);
2298 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2299 /* truly void, because dXSARGS not invoked */
2300 1 PL_markstack_ptr = temp;
2301 1 XSRETURN_EMPTY; /* return empty stack */
2302 }
2303 /* must have used dXSARGS; list context implied */
2304 0 return; /* assume stack size is correct */
2305  
2306 void
2307 sin_cq (rop, op)
2308 SV * rop
2309 SV * op
2310 PREINIT:
2311 I32* temp;
2312 PPCODE:
2313 1 temp = PL_markstack_ptr++;
2314 1 sin_cq(aTHX_ rop, op);
2315 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2316 /* truly void, because dXSARGS not invoked */
2317 1 PL_markstack_ptr = temp;
2318 1 XSRETURN_EMPTY; /* return empty stack */
2319 }
2320 /* must have used dXSARGS; list context implied */
2321 0 return; /* assume stack size is correct */
2322  
2323 void
2324 tan_cq (rop, op)
2325 SV * rop
2326 SV * op
2327 PREINIT:
2328 I32* temp;
2329 PPCODE:
2330 1 temp = PL_markstack_ptr++;
2331 1 tan_cq(aTHX_ rop, op);
2332 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2333 /* truly void, because dXSARGS not invoked */
2334 1 PL_markstack_ptr = temp;
2335 1 XSRETURN_EMPTY; /* return empty stack */
2336 }
2337 /* must have used dXSARGS; list context implied */
2338 0 return; /* assume stack size is correct */
2339  
2340 void
2341 acosh_cq (rop, op)
2342 SV * rop
2343 SV * op
2344 PREINIT:
2345 I32* temp;
2346 PPCODE:
2347 1 temp = PL_markstack_ptr++;
2348 1 acosh_cq(aTHX_ rop, op);
2349 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2350 /* truly void, because dXSARGS not invoked */
2351 1 PL_markstack_ptr = temp;
2352 1 XSRETURN_EMPTY; /* return empty stack */
2353 }
2354 /* must have used dXSARGS; list context implied */
2355 0 return; /* assume stack size is correct */
2356  
2357 void
2358 asinh_cq (rop, op)
2359 SV * rop
2360 SV * op
2361 PREINIT:
2362 I32* temp;
2363 PPCODE:
2364 1 temp = PL_markstack_ptr++;
2365 1 asinh_cq(aTHX_ rop, op);
2366 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2367 /* truly void, because dXSARGS not invoked */
2368 1 PL_markstack_ptr = temp;
2369 1 XSRETURN_EMPTY; /* return empty stack */
2370 }
2371 /* must have used dXSARGS; list context implied */
2372 0 return; /* assume stack size is correct */
2373  
2374 void
2375 atanh_cq (rop, op)
2376 SV * rop
2377 SV * op
2378 PREINIT:
2379 I32* temp;
2380 PPCODE:
2381 1 temp = PL_markstack_ptr++;
2382 1 atanh_cq(aTHX_ rop, op);
2383 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2384 /* truly void, because dXSARGS not invoked */
2385 1 PL_markstack_ptr = temp;
2386 1 XSRETURN_EMPTY; /* return empty stack */
2387 }
2388 /* must have used dXSARGS; list context implied */
2389 0 return; /* assume stack size is correct */
2390  
2391 void
2392 cosh_cq (rop, op)
2393 SV * rop
2394 SV * op
2395 PREINIT:
2396 I32* temp;
2397 PPCODE:
2398 1 temp = PL_markstack_ptr++;
2399 1 cosh_cq(aTHX_ rop, op);
2400 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2401 /* truly void, because dXSARGS not invoked */
2402 1 PL_markstack_ptr = temp;
2403 1 XSRETURN_EMPTY; /* return empty stack */
2404 }
2405 /* must have used dXSARGS; list context implied */
2406 0 return; /* assume stack size is correct */
2407  
2408 void
2409 sinh_cq (rop, op)
2410 SV * rop
2411 SV * op
2412 PREINIT:
2413 I32* temp;
2414 PPCODE:
2415 1 temp = PL_markstack_ptr++;
2416 1 sinh_cq(aTHX_ rop, op);
2417 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2418 /* truly void, because dXSARGS not invoked */
2419 1 PL_markstack_ptr = temp;
2420 1 XSRETURN_EMPTY; /* return empty stack */
2421 }
2422 /* must have used dXSARGS; list context implied */
2423 0 return; /* assume stack size is correct */
2424  
2425 void
2426 tanh_cq (rop, op)
2427 SV * rop
2428 SV * op
2429 PREINIT:
2430 I32* temp;
2431 PPCODE:
2432 1 temp = PL_markstack_ptr++;
2433 1 tanh_cq(aTHX_ rop, op);
2434 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2435 /* truly void, because dXSARGS not invoked */
2436 1 PL_markstack_ptr = temp;
2437 1 XSRETURN_EMPTY; /* return empty stack */
2438 }
2439 /* must have used dXSARGS; list context implied */
2440 0 return; /* assume stack size is correct */
2441  
2442 void
2443 exp_cq (rop, op)
2444 SV * rop
2445 SV * op
2446 PREINIT:
2447 I32* temp;
2448 PPCODE:
2449 1 temp = PL_markstack_ptr++;
2450 1 exp_cq(aTHX_ rop, op);
2451 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2452 /* truly void, because dXSARGS not invoked */
2453 1 PL_markstack_ptr = temp;
2454 1 XSRETURN_EMPTY; /* return empty stack */
2455 }
2456 /* must have used dXSARGS; list context implied */
2457 0 return; /* assume stack size is correct */
2458  
2459 void
2460 log_cq (rop, op)
2461 SV * rop
2462 SV * op
2463 PREINIT:
2464 I32* temp;
2465 PPCODE:
2466 1 temp = PL_markstack_ptr++;
2467 1 log_cq(aTHX_ rop, op);
2468 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2469 /* truly void, because dXSARGS not invoked */
2470 1 PL_markstack_ptr = temp;
2471 1 XSRETURN_EMPTY; /* return empty stack */
2472 }
2473 /* must have used dXSARGS; list context implied */
2474 0 return; /* assume stack size is correct */
2475  
2476 void
2477 sqrt_cq (rop, op)
2478 SV * rop
2479 SV * op
2480 PREINIT:
2481 I32* temp;
2482 PPCODE:
2483 1 temp = PL_markstack_ptr++;
2484 1 sqrt_cq(aTHX_ rop, op);
2485 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2486 /* truly void, because dXSARGS not invoked */
2487 1 PL_markstack_ptr = temp;
2488 1 XSRETURN_EMPTY; /* return empty stack */
2489 }
2490 /* must have used dXSARGS; list context implied */
2491 0 return; /* assume stack size is correct */
2492  
2493 void
2494 proj_cq (rop, op)
2495 SV * rop
2496 SV * op
2497 PREINIT:
2498 I32* temp;
2499 PPCODE:
2500 6 temp = PL_markstack_ptr++;
2501 6 proj_cq(aTHX_ rop, op);
2502 6 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 6 0 6
2503 /* truly void, because dXSARGS not invoked */
2504 6 PL_markstack_ptr = temp;
2505 6 XSRETURN_EMPTY; /* return empty stack */
2506 }
2507 /* must have used dXSARGS; list context implied */
2508 0 return; /* assume stack size is correct */
2509  
2510 void
2511 pow_cq (rop, op, exp)
2512 SV * rop
2513 SV * op
2514 SV * exp
2515 PREINIT:
2516 I32* temp;
2517 PPCODE:
2518 1 temp = PL_markstack_ptr++;
2519 1 pow_cq(aTHX_ rop, op, exp);
2520 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2521 /* truly void, because dXSARGS not invoked */
2522 1 PL_markstack_ptr = temp;
2523 1 XSRETURN_EMPTY; /* return empty stack */
2524 }
2525 /* must have used dXSARGS; list context implied */
2526 0 return; /* assume stack size is correct */
2527  
2528 SV *
2529 _overload_true (rop, second, third)
2530 SV * rop
2531 SV * second
2532 SV * third
2533 CODE:
2534 4 RETVAL = _overload_true (aTHX_ rop, second, third);
2535 OUTPUT: RETVAL
2536  
2537 SV *
2538 _overload_not (rop, second, third)
2539 SV * rop
2540 SV * second
2541 SV * third
2542 CODE:
2543 8 RETVAL = _overload_not (aTHX_ rop, second, third);
2544 OUTPUT: RETVAL
2545  
2546 SV *
2547 _overload_equiv (a, b, third)
2548 SV * a
2549 SV * b
2550 SV * third
2551 CODE:
2552 37 RETVAL = _overload_equiv (aTHX_ a, b, third);
2553 OUTPUT: RETVAL
2554  
2555 SV *
2556 _overload_not_equiv (a, b, third)
2557 SV * a
2558 SV * b
2559 SV * third
2560 CODE:
2561 7 RETVAL = _overload_not_equiv (aTHX_ a, b, third);
2562 OUTPUT: RETVAL
2563  
2564 SV *
2565 _overload_pow (a, b, third)
2566 SV * a
2567 SV * b
2568 SV * third
2569 CODE:
2570 5 RETVAL = _overload_pow (aTHX_ a, b, third);
2571 OUTPUT: RETVAL
2572  
2573 SV *
2574 _overload_mul (a, b, third)
2575 SV * a
2576 SV * b
2577 SV * third
2578 CODE:
2579 5 RETVAL = _overload_mul (aTHX_ a, b, third);
2580 OUTPUT: RETVAL
2581  
2582 SV *
2583 _overload_add (a, b, third)
2584 SV * a
2585 SV * b
2586 SV * third
2587 CODE:
2588 5 RETVAL = _overload_add (aTHX_ a, b, third);
2589 OUTPUT: RETVAL
2590  
2591 SV *
2592 _overload_div (a, b, third)
2593 SV * a
2594 SV * b
2595 SV * third
2596 CODE:
2597 7 RETVAL = _overload_div (aTHX_ a, b, third);
2598 OUTPUT: RETVAL
2599  
2600 SV *
2601 _overload_sub (a, b, third)
2602 SV * a
2603 SV * b
2604 SV * third
2605 CODE:
2606 6 RETVAL = _overload_sub (aTHX_ a, b, third);
2607 OUTPUT: RETVAL
2608  
2609 SV *
2610 _overload_sqrt (a, b, third)
2611 SV * a
2612 SV * b
2613 SV * third
2614 CODE:
2615 1 RETVAL = _overload_sqrt (aTHX_ a, b, third);
2616 OUTPUT: RETVAL
2617  
2618 SV *
2619 _overload_pow_eq (a, b, third)
2620 SV * a
2621 SV * b
2622 SV * third
2623 CODE:
2624 4 RETVAL = _overload_pow_eq (aTHX_ a, b, third);
2625 OUTPUT: RETVAL
2626  
2627 SV *
2628 _overload_mul_eq (a, b, third)
2629 SV * a
2630 SV * b
2631 SV * third
2632 CODE:
2633 7 RETVAL = _overload_mul_eq (aTHX_ a, b, third);
2634 OUTPUT: RETVAL
2635  
2636 SV *
2637 _overload_add_eq (a, b, third)
2638 SV * a
2639 SV * b
2640 SV * third
2641 CODE:
2642 6 RETVAL = _overload_add_eq (aTHX_ a, b, third);
2643 OUTPUT: RETVAL
2644  
2645 SV *
2646 _overload_div_eq (a, b, third)
2647 SV * a
2648 SV * b
2649 SV * third
2650 CODE:
2651 5 RETVAL = _overload_div_eq (aTHX_ a, b, third);
2652 OUTPUT: RETVAL
2653  
2654 SV *
2655 _overload_sub_eq (a, b, third)
2656 SV * a
2657 SV * b
2658 SV * third
2659 CODE:
2660 5 RETVAL = _overload_sub_eq (aTHX_ a, b, third);
2661 OUTPUT: RETVAL
2662  
2663 SV *
2664 _overload_copy (a, second, third)
2665 SV * a
2666 SV * second
2667 SV * third
2668 CODE:
2669 4 RETVAL = _overload_copy (aTHX_ a, second, third);
2670 OUTPUT: RETVAL
2671  
2672 SV *
2673 _overload_abs (rop, second, third)
2674 SV * rop
2675 SV * second
2676 SV * third
2677 CODE:
2678 1 RETVAL = _overload_abs (aTHX_ rop, second, third);
2679 OUTPUT: RETVAL
2680  
2681 SV *
2682 _overload_exp (a, b, third)
2683 SV * a
2684 SV * b
2685 SV * third
2686 CODE:
2687 1 RETVAL = _overload_exp (aTHX_ a, b, third);
2688 OUTPUT: RETVAL
2689  
2690 SV *
2691 _overload_log (a, b, third)
2692 SV * a
2693 SV * b
2694 SV * third
2695 CODE:
2696 1 RETVAL = _overload_log (aTHX_ a, b, third);
2697 OUTPUT: RETVAL
2698  
2699 SV *
2700 _overload_sin (a, b, third)
2701 SV * a
2702 SV * b
2703 SV * third
2704 CODE:
2705 1 RETVAL = _overload_sin (aTHX_ a, b, third);
2706 OUTPUT: RETVAL
2707  
2708 SV *
2709 _overload_cos (a, b, third)
2710 SV * a
2711 SV * b
2712 SV * third
2713 CODE:
2714 1 RETVAL = _overload_cos (aTHX_ a, b, third);
2715 OUTPUT: RETVAL
2716  
2717 SV *
2718 _overload_atan2 (a, b, third)
2719 SV * a
2720 SV * b
2721 SV * third
2722 CODE:
2723 1 RETVAL = _overload_atan2 (aTHX_ a, b, third);
2724 OUTPUT: RETVAL
2725  
2726 SV *
2727 get_nanq ()
2728 CODE:
2729 4 RETVAL = get_nanq (aTHX);
2730 OUTPUT: RETVAL
2731  
2732  
2733 SV *
2734 get_infq ()
2735 CODE:
2736 2 RETVAL = get_infq (aTHX);
2737 OUTPUT: RETVAL
2738  
2739  
2740 SV *
2741 get_neg_infq ()
2742 CODE:
2743 0 RETVAL = get_neg_infq (aTHX);
2744 OUTPUT: RETVAL
2745  
2746  
2747 SV *
2748 _complex_type ()
2749 CODE:
2750 0 RETVAL = _complex_type (aTHX);
2751 OUTPUT: RETVAL
2752  
2753  
2754 SV *
2755 _double_type ()
2756 CODE:
2757 0 RETVAL = _double_type (aTHX);
2758 OUTPUT: RETVAL
2759  
2760  
2761 SV *
2762 _get_nv (x)
2763 SV * x
2764 CODE:
2765 0 RETVAL = _get_nv (aTHX_ x);
2766 OUTPUT: RETVAL
2767  
2768 SV *
2769 _which_package (b)
2770 SV * b
2771 CODE:
2772 0 RETVAL = _which_package (aTHX_ b);
2773 OUTPUT: RETVAL
2774  
2775 SV *
2776 _wrap_count ()
2777 CODE:
2778 0 RETVAL = _wrap_count (aTHX);
2779 OUTPUT: RETVAL
2780  
2781  
2782 SV *
2783 _ivsize ()
2784 CODE:
2785 0 RETVAL = _ivsize (aTHX);
2786 OUTPUT: RETVAL
2787  
2788  
2789 SV *
2790 _nvsize ()
2791 CODE:
2792 0 RETVAL = _nvsize (aTHX);
2793 OUTPUT: RETVAL
2794  
2795  
2796 SV *
2797 _doublesize ()
2798 CODE:
2799 0 RETVAL = _doublesize (aTHX);
2800 OUTPUT: RETVAL
2801  
2802  
2803 SV *
2804 _longdoublesize ()
2805 CODE:
2806 0 RETVAL = _longdoublesize (aTHX);
2807 OUTPUT: RETVAL
2808  
2809  
2810 SV *
2811 _float128size ()
2812 CODE:
2813 0 RETVAL = _float128size (aTHX);
2814 OUTPUT: RETVAL
2815  
2816  
2817 SV *
2818 _double_Complexsize ()
2819 CODE:
2820 0 RETVAL = _double_Complexsize (aTHX);
2821 OUTPUT: RETVAL
2822  
2823  
2824 SV *
2825 _longdouble_Complexsize ()
2826 CODE:
2827 0 RETVAL = _longdouble_Complexsize (aTHX);
2828 OUTPUT: RETVAL
2829  
2830  
2831 SV *
2832 _float128_Complexsize ()
2833 CODE:
2834 0 RETVAL = _float128_Complexsize (aTHX);
2835 OUTPUT: RETVAL
2836  
2837  
2838 void
2839 _q_to_str (ld)
2840 SV * ld
2841 PREINIT:
2842 I32* temp;
2843 PPCODE:
2844 13 temp = PL_markstack_ptr++;
2845 13 _q_to_str(aTHX_ ld);
2846 13 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 13 13
2847 /* truly void, because dXSARGS not invoked */
2848 0 PL_markstack_ptr = temp;
2849 0 XSRETURN_EMPTY; /* return empty stack */
2850 }
2851 /* must have used dXSARGS; list context implied */
2852 13 return; /* assume stack size is correct */
2853  
2854 void
2855 _q_to_strp (ld, decimal_prec)
2856 SV * ld
2857 int decimal_prec
2858 PREINIT:
2859 I32* temp;
2860 PPCODE:
2861 3 temp = PL_markstack_ptr++;
2862 3 _q_to_strp(aTHX_ ld, decimal_prec);
2863 3 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 0 3 3
2864 /* truly void, because dXSARGS not invoked */
2865 0 PL_markstack_ptr = temp;
2866 0 XSRETURN_EMPTY; /* return empty stack */
2867 }
2868 /* must have used dXSARGS; list context implied */
2869 3 return; /* assume stack size is correct */
2870  
2871 SV *
2872 _LDBL_DIG ()
2873 CODE:
2874 0 RETVAL = _LDBL_DIG (aTHX);
2875 OUTPUT: RETVAL
2876  
2877  
2878 SV *
2879 _FLT128_DIG ()
2880 CODE:
2881 0 RETVAL = _FLT128_DIG (aTHX);
2882 OUTPUT: RETVAL
2883  
2884  
2885 SV *
2886 _get_xs_version ()
2887 CODE:
2888 0 RETVAL = _get_xs_version (aTHX);
2889 OUTPUT: RETVAL
2890  
2891  
2892 SV *
2893 _itsa (a)
2894 SV * a
2895 CODE:
2896 9 RETVAL = _itsa (aTHX_ a);
2897 OUTPUT: RETVAL
2898  
2899 int
2900 _mingw_w64_bug ()
2901  
2902  
2903 int
2904 _gcc_tan_bug ()
2905  
2906  
2907 int
2908 nnumflag ()
2909  
2910  
2911 void
2912 clear_nnum ()
2913  
2914 PREINIT:
2915 I32* temp;
2916 PPCODE:
2917 1 temp = PL_markstack_ptr++;
2918 1 clear_nnum();
2919 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2920 /* truly void, because dXSARGS not invoked */
2921 1 PL_markstack_ptr = temp;
2922 1 XSRETURN_EMPTY; /* return empty stack */
2923 }
2924 /* must have used dXSARGS; list context implied */
2925 0 return; /* assume stack size is correct */
2926  
2927 void
2928 set_nnum (x)
2929 int x
2930 PREINIT:
2931 I32* temp;
2932 PPCODE:
2933 1 temp = PL_markstack_ptr++;
2934 1 set_nnum(x);
2935 1 ▶ if (PL_markstack_ptr != temp) {
Branch: 1 branch
BranchTrueFalseTotal
if (PL_markstack_ptr != temp) { 1 0 1
2936 /* truly void, because dXSARGS not invoked */
2937 1 PL_markstack_ptr = temp;
2938 1 XSRETURN_EMPTY; /* return empty stack */
2939 }
2940 /* must have used dXSARGS; list context implied */
2941 0 return; /* assume stack size is correct */
2942  
2943 int
2944 _lln (x)
2945 SV * x
2946 CODE:
2947 0 RETVAL = _lln (aTHX_ x);
2948 OUTPUT: RETVAL
2949  
« blib/lib/Math/Complex_C/Q.pm ↑ Summary