Debian Codegraph @

external/gsl/gsl_sum__work_u.c

raw symbols SCIP
1 #cxx . . $ `<file>/external/gsl/gsl_sum__work_u.c`/include "gsl__config.h"cxx . . $ `<file>/external/gsl/gsl__config.h`/
2 #include "gsl_math.h"cxx . . $ `<file>/external/gsl/gsl_math.h`/
3 #include "gsl_errno.h"cxx . . $ `<file>/external/gsl/gsl_errno.h`/
4 #include "gsl_sum.h"cxx . . $ `<file>/external/gsl/gsl_sum.h`/
5
6 gsl_sum_levin_u_workspacecxx . . $ gsl_sum_levin_u_workspace# *
7 gsl_sum_levin_u_alloccxx . . $ gsl_sum_levin_u_alloc(d46f4a4a2f339b5a). (size_tcxx . . $ size_t# n)
8 {
9 gsl_sum_levin_u_workspacecxx . . $ gsl_sum_levin_u_workspace# * w;
10
11 if (n == 0)
12 {
13 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("length n must be positive integer", GSL_EDOM, 0);
14 }
15
16 w = (gsl_sum_levin_u_workspacecxx . . $ gsl_sum_levin_u_workspace# *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(gsl_sum_levin_u_workspacecxx . . $ gsl_sum_levin_u_workspace#));
17
18 if (w == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
19 {
20 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("failed to allocate struct", GSL_ENOMEM, 0);
21 }
22
23 w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * sizeof (double));
24
25 if (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
26 {
27 freecxx . . $ free(5d22bdacc48458e8).(w) ; /* error in constructor, prevent memory leak */
28
29 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("failed to allocate space for q_num", GSL_ENOMEM, 0);
30 }
31
32 w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#q_den. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * sizeof (double));
33
34 if (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#q_den. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
35 {
36 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num.);
37 freecxx . . $ free(5d22bdacc48458e8). (w) ; /* error in constructor, prevent memory leak */
38
39 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("failed to allocate space for q_den", GSL_ENOMEM, 0);
40 }
41
42 w->dq_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_num. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * n * sizeof (double));
43
44 if (w->dq_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_num. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
45 {
46 freecxx . . $ free(5d22bdacc48458e8). (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#q_den.);
47 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num.);
48 freecxx . . $ free(5d22bdacc48458e8).(w) ; /* error in constructor, prevent memory leak */
49
50 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("failed to allocate space for dq_num", GSL_ENOMEM, 0);
51 }
52
53 w->dq_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_den. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * n * sizeof (double));
54
55 if (w->dq_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_den. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
56 {
57 freecxx . . $ free(5d22bdacc48458e8). (w->dq_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_num.);
58 freecxx . . $ free(5d22bdacc48458e8). (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#q_den.);
59 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num.);
60 freecxx . . $ free(5d22bdacc48458e8). (w) ; /* error in constructor, prevent memory leak */
61
62 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("failed to allocate space for dq_den", GSL_ENOMEM, 0);
63 }
64
65 w->dsumcxx . . $ $anonymous_type_6480bfc12abf8268_0#dsum. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * sizeof (double));
66
67 if (w->dsumcxx . . $ $anonymous_type_6480bfc12abf8268_0#dsum. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
68 {
69 freecxx . . $ free(5d22bdacc48458e8). (w->dq_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_den.);
70 freecxx . . $ free(5d22bdacc48458e8). (w->dq_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_num.);
71 freecxx . . $ free(5d22bdacc48458e8). (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#q_den.);
72 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num.);
73 freecxx . . $ free(5d22bdacc48458e8). (w) ; /* error in constructor, prevent memory leak */
74
75 GSL_ERROR_VALcxx . . $ `external/gsl/gsl_errno.h:112:9`! ("failed to allocate space for dsum", GSL_ENOMEM, 0);
76 }
77
78 w->sizecxx . . $ $anonymous_type_6480bfc12abf8268_0#size. = n;
79 w->terms_usedcxx . . $ $anonymous_type_6480bfc12abf8268_0#terms_used. = 0;
80 w->sum_plaincxx . . $ $anonymous_type_6480bfc12abf8268_0#sum_plain. = 0;
81
82 return w;
83 }
84
85 void
86 gsl_sum_levin_u_freecxx . . $ gsl_sum_levin_u_free(a6a75bc35cd72aea). (gsl_sum_levin_u_workspacecxx . . $ gsl_sum_levin_u_workspace# * w)
87 {
88 freecxx . . $ free(5d22bdacc48458e8). (w->dsumcxx . . $ $anonymous_type_6480bfc12abf8268_0#dsum.);
89 freecxx . . $ free(5d22bdacc48458e8). (w->dq_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_den.);
90 freecxx . . $ free(5d22bdacc48458e8). (w->dq_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#dq_num.);
91 freecxx . . $ free(5d22bdacc48458e8). (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_0#q_den.);
92 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_0#q_num.);
93 freecxx . . $ free(5d22bdacc48458e8). (w);
94 }