Debian Codegraph @

external/gsl/gsl_sum__work_utrunc.c

raw symbols SCIP
1 #cxx . . $ `<file>/external/gsl/gsl_sum__work_utrunc.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_utrunc_workspacecxx . . $ gsl_sum_levin_utrunc_workspace# *
7 gsl_sum_levin_utrunc_alloccxx . . $ gsl_sum_levin_utrunc_alloc(427bb45a0f04c5ec). (size_t n)
8 {
9 gsl_sum_levin_utrunc_workspacecxx . . $ gsl_sum_levin_utrunc_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_utrunc_workspacecxx . . $ gsl_sum_levin_utrunc_workspace# *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(gsl_sum_levin_utrunc_workspacecxx . . $ gsl_sum_levin_utrunc_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_1#q_num. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * sizeof (double));
24
25 if (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_1#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_1#q_den. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * sizeof (double));
33
34 if (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_1#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_1#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->dsumcxx . . $ $anonymous_type_6480bfc12abf8268_1#dsum. = (double *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64). (n * sizeof (double));
43
44 if (w->dsumcxx . . $ $anonymous_type_6480bfc12abf8268_1#dsum. == 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_1#q_den.);
47 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_1#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 dsum", GSL_ENOMEM, 0);
51 }
52
53 w->sizecxx . . $ $anonymous_type_6480bfc12abf8268_1#size. = n;
54 w->terms_usedcxx . . $ $anonymous_type_6480bfc12abf8268_1#terms_used. = 0;
55 w->sum_plaincxx . . $ $anonymous_type_6480bfc12abf8268_1#sum_plain. = 0;
56
57 return w;
58 }
59
60 void
61 gsl_sum_levin_utrunc_freecxx . . $ gsl_sum_levin_utrunc_free(9363032f3f3573eb). (gsl_sum_levin_utrunc_workspacecxx . . $ gsl_sum_levin_utrunc_workspace# * w)
62 {
63 freecxx . . $ free(5d22bdacc48458e8). (w->dsumcxx . . $ $anonymous_type_6480bfc12abf8268_1#dsum.);
64 freecxx . . $ free(5d22bdacc48458e8). (w->q_dencxx . . $ $anonymous_type_6480bfc12abf8268_1#q_den.);
65 freecxx . . $ free(5d22bdacc48458e8). (w->q_numcxx . . $ $anonymous_type_6480bfc12abf8268_1#q_num.);
66 freecxx . . $ free(5d22bdacc48458e8). (w);
67 }