BivariateCDF.c

filter: Statementstmt 20.3% 24 / 118 Branchbran 3.8% 3 / 78 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 13.7% 27 / 196 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« const-xs.inc ↑ Summary toms462.c »
1 /*
2 * This file was generated automatically by ExtUtils::ParseXS version 3.63 from the
3 * contents of BivariateCDF.xs. Do not edit this file, edit BivariateCDF.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8  
9 #line 1 "BivariateCDF.xs"
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13  
14 #include "ppport.h"
15  
16 #include <toms462.h>
17  
18 #include "const-c.inc"
19  
20 #line 21 "BivariateCDF.c"
21 #ifndef PERL_UNUSED_VAR
22 # define PERL_UNUSED_VAR(var) if (0) var = var
23 #endif
24  
25 #ifndef dVAR
26 # define dVAR dNOOP
27 #endif
28  
29  
30 /* This stuff is not part of the API! You have been warned. */
31 #ifndef PERL_VERSION_DECIMAL
32 # define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
33 #endif
34 #ifndef PERL_DECIMAL_VERSION
35 # define PERL_DECIMAL_VERSION \
36 PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
37 #endif
38 #ifndef PERL_VERSION_GE
39 # define PERL_VERSION_GE(r,v,s) \
40 (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
41 #endif
42 #ifndef PERL_VERSION_LE
43 # define PERL_VERSION_LE(r,v,s) \
44 (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
45 #endif
46  
47 /* XS_INTERNAL is the explicit static-linkage variant of the default
48 * XS macro.
49 *
50 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
51 * "static", ie. it exports XSUB symbols. You probably don't want that
52 * for anything but the BOOT XSUB.
53 *
54 * See XSUB.h in core!
55 */
56  
57  
58 /* TODO: This might be compatible further back than 5.10.0. */
59 #if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
60 # undef XS_EXTERNAL
61 # undef XS_INTERNAL
62 # if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
63 # define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
64 # define XS_INTERNAL(name) static XSPROTO(name)
65 # endif
66 # if defined(__SYMBIAN32__)
67 # define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
68 # define XS_INTERNAL(name) EXPORT_C static XSPROTO(name)
69 # endif
70 # ifndef XS_EXTERNAL
71 # if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
72 # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
73 # define XS_INTERNAL(name) static void name(pTHX_ CV* cv __attribute__unused__)
74 # else
75 # ifdef __cplusplus
76 # define XS_EXTERNAL(name) extern "C" XSPROTO(name)
77 # define XS_INTERNAL(name) static XSPROTO(name)
78 # else
79 # define XS_EXTERNAL(name) XSPROTO(name)
80 # define XS_INTERNAL(name) static XSPROTO(name)
81 # endif
82 # endif
83 # endif
84 #endif
85  
86 /* perl >= 5.10.0 && perl <= 5.15.1 */
87  
88  
89 /* The XS_EXTERNAL macro is used for functions that must not be static
90 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
91 * macro defined, the best we can do is assume XS is the same.
92 * Dito for XS_INTERNAL.
93 */
94 #ifndef XS_EXTERNAL
95 # define XS_EXTERNAL(name) XS(name)
96 #endif
97 #ifndef XS_INTERNAL
98 # define XS_INTERNAL(name) XS(name)
99 #endif
100  
101 /* Now, finally, after all this mess, we want an ExtUtils::ParseXS
102 * internal macro that we're free to redefine for varying linkage due
103 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
104 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
105 */
106  
107 #undef XS_EUPXS
108 #if defined(PERL_EUPXS_ALWAYS_EXPORT)
109 # define XS_EUPXS(name) XS_EXTERNAL(name)
110 #else
111 /* default to internal */
112 # define XS_EUPXS(name) XS_INTERNAL(name)
113 #endif
114  
115 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
116 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
117  
118 /* prototype to pass -Wmissing-prototypes */
119 static void
120 S_croak_xs_usage(const CV *const cv, const char *const params);
121  
122 static void
123 S_croak_xs_usage(const CV *const cv, const char *const params)
124 {
125 const GV *const gv = CvGV(cv);
126  
127 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
128  
129 if (gv) {
130 const char *const gvname = GvNAME(gv);
131 const HV *const stash = GvSTASH(gv);
132 const char *const hvname = stash ? HvNAME(stash) : NULL;
133  
134 if (hvname)
135 Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
136 else
137 Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
138 } else {
139 /* Pants. I don't think that it should be possible to get here. */
140 Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params);
141 }
142 }
143 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
144  
145 #define croak_xs_usage S_croak_xs_usage
146  
147 #endif
148  
149 /* NOTE: the prototype of newXSproto() is different in versions of perls,
150 * so we define a portable version of newXSproto()
151 */
152 #ifdef newXS_flags
153 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
154 #else
155 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
156 #endif /* !defined(newXS_flags) */
157  
158 #if PERL_VERSION_LE(5, 21, 5)
159 # define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
160 #else
161 # define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
162 #endif
163  
164 /* simple backcompat versions of the TARGx() macros with no optimisation */
165 #ifndef TARGi
166 # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv)
167 # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv)
168 # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv)
169 #endif
170  
171 #line 172 "BivariateCDF.c"
172  
173 /* INCLUDE: Including 'const-xs.inc' from 'BivariateCDF.xs' */
174  
175  
176 XS_EUPXS(XS_Math__BivariateCDF_constant); /* prototype to pass -Wmissing-prototypes */
177 0 XS_EUPXS(XS_Math__BivariateCDF_constant)
178 {
179 0 dVAR; dXSARGS;
180 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
181 0 croak_xs_usage(cv, "sv");
182 PERL_UNUSED_VAR(ax); /* -Wall */
183 0 ▶ SP -= items;
Branch: 1 branch
BranchTrueFalseTotal
SP -= items; 0 0 0
184 {
185 #line 4 "./const-xs.inc"
186 #ifdef dXSTARG
187 dXSTARG; /* Faster if we have it. */
188 #else
189 dTARGET;
190 #endif
191 STRLEN len;
192 int type;
193 /* IV iv; Uncomment this if you need to return IVs */
194 /* NV nv; Uncomment this if you need to return NVs */
195 /* const char *pv; Uncomment this if you need to return PVs */
196 #line 197 "BivariateCDF.c"
197 0 SV * sv = ST(0)
198 ;
199 0 const char * s = SvPV(sv, len);
200 #line 18 "./const-xs.inc"
201 type = constant(aTHX_ s, len);
202 /* Return 1 or 2 items. First is error message, or undef if no error.
203 Second, if present, is found value */
204 switch (type) {
205 case PERL_constant_NOTFOUND:
206 sv =
207 sv_2mortal(newSVpvf("%s is not a valid Math::BivariateCDF macro", s));
208 PUSHs(sv);
209 break;
210 case PERL_constant_NOTDEF:
211 sv = sv_2mortal(newSVpvf(
212 "Your vendor has not defined Math::BivariateCDF macro %s, used",
213 s));
214 PUSHs(sv);
215 break;
216 /* Uncomment this if you need to return IVs
217 case PERL_constant_ISIV:
218 EXTEND(SP, 2);
219 PUSHs(&PL_sv_undef);
220 PUSHi(iv);
221 break; */
222 /* Uncomment this if you need to return NOs
223 case PERL_constant_ISNO:
224 EXTEND(SP, 2);
225 PUSHs(&PL_sv_undef);
226 PUSHs(&PL_sv_no);
227 break; */
228 /* Uncomment this if you need to return NVs
229 case PERL_constant_ISNV:
230 EXTEND(SP, 2);
231 PUSHs(&PL_sv_undef);
232 PUSHn(nv);
233 break; */
234 /* Uncomment this if you need to return PVs
235 case PERL_constant_ISPV:
236 EXTEND(SP, 2);
237 PUSHs(&PL_sv_undef);
238 PUSHp(pv, strlen(pv));
239 break; */
240 /* Uncomment this if you need to return PVNs
241 case PERL_constant_ISPVN:
242 EXTEND(SP, 2);
243 PUSHs(&PL_sv_undef);
244 PUSHp(pv, iv);
245 break; */
246 /* Uncomment this if you need to return SVs
247 case PERL_constant_ISSV:
248 EXTEND(SP, 2);
249 PUSHs(&PL_sv_undef);
250 PUSHs(sv);
251 break; */
252 /* Uncomment this if you need to return UNDEFs
253 case PERL_constant_ISUNDEF:
254 break; */
255 /* Uncomment this if you need to return UVs
256 case PERL_constant_ISUV:
257 EXTEND(SP, 2);
258 PUSHs(&PL_sv_undef);
259 PUSHu((UV)iv);
260 break; */
261 /* Uncomment this if you need to return YESs
262 case PERL_constant_ISYES:
263 EXTEND(SP, 2);
264 PUSHs(&PL_sv_undef);
265 PUSHs(&PL_sv_yes);
266 break; */
267 default:
268 sv = sv_2mortal(newSVpvf(
269 "Unexpected return type %d while processing Math::BivariateCDF macro %s, used",
270 type, s));
271 PUSHs(sv);
272 }
273 #line 274 "BivariateCDF.c"
274 0 PUTBACK;
275 0 return;
276 }
277 }
278  
279  
280 /* INCLUDE: Returning to 'BivariateCDF.xs' from 'const-xs.inc' */
281  
282  
283 XS_EUPXS(XS_Math__BivariateCDF_bivariate_normal_cdf_values); /* prototype to pass -Wmissing-prototypes */
284 0 XS_EUPXS(XS_Math__BivariateCDF_bivariate_normal_cdf_values)
285 {
286 0 dVAR; dXSARGS;
287 0 ▶ if (items != 5)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 5) 0 0 0
288 0 croak_xs_usage(cv, "n_data, x, y, r, fxy");
289 {
290 int * n_data;
291 double * x;
292 double * y;
293 double * r;
294 double * fxy;
295  
296 0 ▶ if (SvROK(ST(0)) && sv_derived_from(ST(0), "intPtr")) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(0)) && sv_derived_from(ST(0), "intPtr")) { 0 0 0
if (SvROK(ST(0)) && sv_derived_from(ST(0), "intPtr")) { 0 0 0
297 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
298 0 n_data = INT2PTR(int *,tmp);
299 }
300 else {
301 0 ▶ const char* refstr = SvROK(ST(0)) ? "" : SvOK(ST(0)) ? "scalar " : "undef";
Branch: 2 branches
BranchTrueFalseTotal
const char* refstr = SvROK(ST(0)) ? "" : SvOK(ST(0)) ? "scalar " : "undef"; 0 0 0
const char* refstr = SvROK(ST(0)) ? "" : SvOK(ST(0)) ? "scalar " : "undef"; 0 0 0
302 0 Perl_croak_nocontext("%s: Expected %s to be of type %s; got %s%" SVf " instead",
303 "Math::BivariateCDF::bivariate_normal_cdf_values",
304 "n_data", "intPtr",
305 0 refstr, ST(0)
306 );
307 }
308 ;
309  
310 0 ▶ if (SvROK(ST(1)) && sv_derived_from(ST(1), "doublePtr")) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(1)) && sv_derived_from(ST(1), "doublePtr")) { 0 0 0
if (SvROK(ST(1)) && sv_derived_from(ST(1), "doublePtr")) { 0 0 0
311 0 IV tmp = SvIV((SV*)SvRV(ST(1)));
312 0 x = INT2PTR(double *,tmp);
313 }
314 else {
315 0 ▶ const char* refstr = SvROK(ST(1)) ? "" : SvOK(ST(1)) ? "scalar " : "undef";
Branch: 2 branches
BranchTrueFalseTotal
const char* refstr = SvROK(ST(1)) ? "" : SvOK(ST(1)) ? "scalar " : "undef"; 0 0 0
const char* refstr = SvROK(ST(1)) ? "" : SvOK(ST(1)) ? "scalar " : "undef"; 0 0 0
316 0 Perl_croak_nocontext("%s: Expected %s to be of type %s; got %s%" SVf " instead",
317 "Math::BivariateCDF::bivariate_normal_cdf_values",
318 "x", "doublePtr",
319 0 refstr, ST(1)
320 );
321 }
322 ;
323  
324 0 ▶ if (SvROK(ST(2)) && sv_derived_from(ST(2), "doublePtr")) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(2)) && sv_derived_from(ST(2), "doublePtr")) { 0 0 0
if (SvROK(ST(2)) && sv_derived_from(ST(2), "doublePtr")) { 0 0 0
325 0 IV tmp = SvIV((SV*)SvRV(ST(2)));
326 0 y = INT2PTR(double *,tmp);
327 }
328 else {
329 0 ▶ const char* refstr = SvROK(ST(2)) ? "" : SvOK(ST(2)) ? "scalar " : "undef";
Branch: 2 branches
BranchTrueFalseTotal
const char* refstr = SvROK(ST(2)) ? "" : SvOK(ST(2)) ? "scalar " : "undef"; 0 0 0
const char* refstr = SvROK(ST(2)) ? "" : SvOK(ST(2)) ? "scalar " : "undef"; 0 0 0
330 0 Perl_croak_nocontext("%s: Expected %s to be of type %s; got %s%" SVf " instead",
331 "Math::BivariateCDF::bivariate_normal_cdf_values",
332 "y", "doublePtr",
333 0 refstr, ST(2)
334 );
335 }
336 ;
337  
338 0 ▶ if (SvROK(ST(3)) && sv_derived_from(ST(3), "doublePtr")) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(3)) && sv_derived_from(ST(3), "doublePtr")) { 0 0 0
if (SvROK(ST(3)) && sv_derived_from(ST(3), "doublePtr")) { 0 0 0
339 0 IV tmp = SvIV((SV*)SvRV(ST(3)));
340 0 r = INT2PTR(double *,tmp);
341 }
342 else {
343 0 ▶ const char* refstr = SvROK(ST(3)) ? "" : SvOK(ST(3)) ? "scalar " : "undef";
Branch: 2 branches
BranchTrueFalseTotal
const char* refstr = SvROK(ST(3)) ? "" : SvOK(ST(3)) ? "scalar " : "undef"; 0 0 0
const char* refstr = SvROK(ST(3)) ? "" : SvOK(ST(3)) ? "scalar " : "undef"; 0 0 0
344 0 Perl_croak_nocontext("%s: Expected %s to be of type %s; got %s%" SVf " instead",
345 "Math::BivariateCDF::bivariate_normal_cdf_values",
346 "r", "doublePtr",
347 0 refstr, ST(3)
348 );
349 }
350 ;
351  
352 0 ▶ if (SvROK(ST(4)) && sv_derived_from(ST(4), "doublePtr")) {
Branch: 2 branches
BranchTrueFalseTotal
if (SvROK(ST(4)) && sv_derived_from(ST(4), "doublePtr")) { 0 0 0
if (SvROK(ST(4)) && sv_derived_from(ST(4), "doublePtr")) { 0 0 0
353 0 IV tmp = SvIV((SV*)SvRV(ST(4)));
354 0 fxy = INT2PTR(double *,tmp);
355 }
356 else {
357 0 ▶ const char* refstr = SvROK(ST(4)) ? "" : SvOK(ST(4)) ? "scalar " : "undef";
Branch: 2 branches
BranchTrueFalseTotal
const char* refstr = SvROK(ST(4)) ? "" : SvOK(ST(4)) ? "scalar " : "undef"; 0 0 0
const char* refstr = SvROK(ST(4)) ? "" : SvOK(ST(4)) ? "scalar " : "undef"; 0 0 0
358 0 Perl_croak_nocontext("%s: Expected %s to be of type %s; got %s%" SVf " instead",
359 "Math::BivariateCDF::bivariate_normal_cdf_values",
360 "fxy", "doublePtr",
361 0 refstr, ST(4)
362 );
363 }
364 ;
365  
366 0 bivariate_normal_cdf_values(n_data, x, y, r, fxy);
367 }
368 0 XSRETURN_EMPTY;
369 }
370  
371  
372 XS_EUPXS(XS_Math__BivariateCDF_bivnor); /* prototype to pass -Wmissing-prototypes */
373 1 XS_EUPXS(XS_Math__BivariateCDF_bivnor)
374 {
375 1 dVAR; dXSARGS;
376 1 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1 1
377 0 croak_xs_usage(cv, "ah, ak, r");
378 {
379 1 double ah = (double)SvNV(ST(0))
380 ;
381 1 double ak = (double)SvNV(ST(1))
382 ;
383 1 double r = (double)SvNV(ST(2))
384 ;
385 double RETVAL;
386 1 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 1 0 1
387  
388 1 RETVAL = bivnor(ah, ak, r);
389 1 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 1 1
390 1 ST(0) = TARG;
391 }
392 1 XSRETURN(1);
393 }
394  
395  
396 XS_EUPXS(XS_Math__BivariateCDF_gauss); /* prototype to pass -Wmissing-prototypes */
397 0 XS_EUPXS(XS_Math__BivariateCDF_gauss)
398 {
399 0 dVAR; dXSARGS;
400 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
401 0 croak_xs_usage(cv, "t");
402 {
403 0 double t = (double)SvNV(ST(0))
404 ;
405 double RETVAL;
406 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
407  
408 0 RETVAL = gauss(t);
409 0 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 0 0
410 0 ST(0) = TARG;
411 }
412 0 XSRETURN(1);
413 }
414  
415  
416 XS_EUPXS(XS_Math__BivariateCDF_r8_abs); /* prototype to pass -Wmissing-prototypes */
417 0 XS_EUPXS(XS_Math__BivariateCDF_r8_abs)
418 {
419 0 dVAR; dXSARGS;
420 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
421 0 croak_xs_usage(cv, "x");
422 {
423 0 double x = (double)SvNV(ST(0))
424 ;
425 double RETVAL;
426 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
427  
428 0 RETVAL = r8_abs(x);
429 0 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 0 0
430 0 ST(0) = TARG;
431 }
432 0 XSRETURN(1);
433 }
434  
435  
436 XS_EUPXS(XS_Math__BivariateCDF_r8_max); /* prototype to pass -Wmissing-prototypes */
437 0 XS_EUPXS(XS_Math__BivariateCDF_r8_max)
438 {
439 0 dVAR; dXSARGS;
440 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
441 0 croak_xs_usage(cv, "x, y");
442 {
443 0 double x = (double)SvNV(ST(0))
444 ;
445 0 double y = (double)SvNV(ST(1))
446 ;
447 double RETVAL;
448 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
449  
450 0 RETVAL = r8_max(x, y);
451 0 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 0 0
452 0 ST(0) = TARG;
453 }
454 0 XSRETURN(1);
455 }
456  
457  
458 XS_EUPXS(XS_Math__BivariateCDF_r8_min); /* prototype to pass -Wmissing-prototypes */
459 0 XS_EUPXS(XS_Math__BivariateCDF_r8_min)
460 {
461 0 dVAR; dXSARGS;
462 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
463 0 croak_xs_usage(cv, "x, y");
464 {
465 0 double x = (double)SvNV(ST(0))
466 ;
467 0 double y = (double)SvNV(ST(1))
468 ;
469 double RETVAL;
470 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
471  
472 0 RETVAL = r8_min(x, y);
473 0 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 0 0
474 0 ST(0) = TARG;
475 }
476 0 XSRETURN(1);
477 }
478  
479  
480 XS_EUPXS(XS_Math__BivariateCDF_timestamp); /* prototype to pass -Wmissing-prototypes */
481 0 XS_EUPXS(XS_Math__BivariateCDF_timestamp)
482 {
483 0 dVAR; dXSARGS;
484 0 ▶ if (items != 0)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 0) 0 0 0
485 0 croak_xs_usage(cv, "");
486 {
487  
488 0 timestamp();
489 }
490 0 XSRETURN_EMPTY;
491 }
492  
493 #ifdef __cplusplus
494 extern "C" {
495 #endif
496 XS_EXTERNAL(boot_Math__BivariateCDF); /* prototype to pass -Wmissing-prototypes */
497 1 XS_EXTERNAL(boot_Math__BivariateCDF)
498 {
499 #if PERL_VERSION_LE(5, 21, 5)
500 dVAR; dXSARGS;
501 #else
502 1 dVAR; dXSBOOTARGSXSAPIVERCHK;
503 #endif
504 #if PERL_VERSION_LE(5, 8, 999) /* PERL_VERSION_LT is 5.33+ */
505 char* file = __FILE__;
506 #else
507 1 const char* file = __FILE__;
508 #endif
509  
510 PERL_UNUSED_VAR(file);
511  
512 PERL_UNUSED_VAR(cv); /* -W */
513 PERL_UNUSED_VAR(items); /* -W */
514 #if PERL_VERSION_LE(5, 21, 5)
515 XS_VERSION_BOOTCHECK;
516 # ifdef XS_APIVERSION_BOOTCHECK
517 XS_APIVERSION_BOOTCHECK;
518 # endif
519 #endif
520  
521 1 newXS_deffile("Math::BivariateCDF::constant", XS_Math__BivariateCDF_constant);
522 1 newXS_deffile("Math::BivariateCDF::bivariate_normal_cdf_values", XS_Math__BivariateCDF_bivariate_normal_cdf_values);
523 1 newXS_deffile("Math::BivariateCDF::bivnor", XS_Math__BivariateCDF_bivnor);
524 1 newXS_deffile("Math::BivariateCDF::gauss", XS_Math__BivariateCDF_gauss);
525 1 newXS_deffile("Math::BivariateCDF::r8_abs", XS_Math__BivariateCDF_r8_abs);
526 1 newXS_deffile("Math::BivariateCDF::r8_max", XS_Math__BivariateCDF_r8_max);
527 1 newXS_deffile("Math::BivariateCDF::r8_min", XS_Math__BivariateCDF_r8_min);
528 1 newXS_deffile("Math::BivariateCDF::timestamp", XS_Math__BivariateCDF_timestamp);
529 #if PERL_VERSION_LE(5, 21, 5)
530 # if PERL_VERSION_GE(5, 9, 0)
531 if (PL_unitcheckav)
532 call_list(PL_scopestack_ix, PL_unitcheckav);
533 # endif
534 XSRETURN_YES;
535 #else
536 1 Perl_xs_boot_epilog(aTHX_ ax);
537 #endif
538 1 }
539  
540 #ifdef __cplusplus
541 }
542 #endif
« const-xs.inc ↑ Summary toms462.c »