@@ -162,19 +162,19 @@ int td_init(double compression, td_histogram_t **result) {
162
162
return 1 ;
163
163
}
164
164
td_histogram_t * histogram ;
165
- histogram = (td_histogram_t * )__td_malloc (sizeof (td_histogram_t ));
165
+ histogram = (td_histogram_t * )td_malloc_ (sizeof (td_histogram_t ));
166
166
if (!histogram ) {
167
167
return 1 ;
168
168
}
169
169
histogram -> cap = capacity ;
170
170
histogram -> compression = (double )compression ;
171
171
td_reset (histogram );
172
- histogram -> nodes_mean = (double * )__td_calloc (capacity , sizeof (double ));
172
+ histogram -> nodes_mean = (double * )td_calloc_ (capacity , sizeof (double ));
173
173
if (!histogram -> nodes_mean ) {
174
174
td_free (histogram );
175
175
return 1 ;
176
176
}
177
- histogram -> nodes_weight = (long long * )__td_calloc (capacity , sizeof (long long ));
177
+ histogram -> nodes_weight = (long long * )td_calloc_ (capacity , sizeof (long long ));
178
178
if (!histogram -> nodes_weight ) {
179
179
td_free (histogram );
180
180
return 1 ;
@@ -192,12 +192,12 @@ td_histogram_t *td_new(double compression) {
192
192
193
193
void td_free (td_histogram_t * histogram ) {
194
194
if (histogram -> nodes_mean ) {
195
- __td_free ((void * )(histogram -> nodes_mean ));
195
+ td_free_ ((void * )(histogram -> nodes_mean ));
196
196
}
197
197
if (histogram -> nodes_weight ) {
198
- __td_free ((void * )(histogram -> nodes_weight ));
198
+ td_free_ ((void * )(histogram -> nodes_weight ));
199
199
}
200
- __td_free ((void * )(histogram ));
200
+ td_free_ ((void * )(histogram ));
201
201
}
202
202
203
203
int td_merge (td_histogram_t * into , td_histogram_t * from ) {
0 commit comments