Lines Matching refs:cts
274 Counts* cts = malloc(sizeof(Counts)); in new_Counts() local
275 if (cts == NULL) in new_Counts()
279 cts->counts = malloc(n_counts * sizeof(ULong)); in new_Counts()
280 if (cts->counts == NULL) in new_Counts()
283 cts->n_counts = n_counts; in new_Counts()
285 cts->counts[i] = counts[i]; in new_Counts()
287 return cts; in new_Counts()
293 Counts* cts = malloc(sizeof(Counts)); in new_Counts_Zeroed() local
294 if (cts == NULL) in new_Counts_Zeroed()
298 cts->counts = malloc(n_counts * sizeof(ULong)); in new_Counts_Zeroed()
299 if (cts->counts == NULL) in new_Counts_Zeroed()
302 cts->n_counts = n_counts; in new_Counts_Zeroed()
304 cts->counts[i] = 0; in new_Counts_Zeroed()
306 return cts; in new_Counts_Zeroed()
309 static void sdel_Counts ( Counts* cts ) in sdel_Counts() argument
311 memset(cts, 0, sizeof(Counts)); in sdel_Counts()
312 free(cts); in sdel_Counts()
315 static void ddel_Counts ( Counts* cts ) in ddel_Counts() argument
317 if (cts->counts) in ddel_Counts()
318 free(cts->counts); in ddel_Counts()
319 memset(cts, 0, sizeof(Counts)); in ddel_Counts()
320 free(cts); in ddel_Counts()
323 static Counts* dopy_Counts ( Counts* cts ) in dopy_Counts() argument
325 return new_Counts( cts->n_counts, cts->counts ); in dopy_Counts()