Home | History | Annotate | Download | only in share

Lines Matching refs:kCodeBookSize

66     idx = qsearch_nearest(code_book, freqs[pos], 0, kCodeBookSize - 1);
78 size_t *item_num = new size_t[kCodeBookSize];
80 memset(item_num, 0, sizeof(size_t) * kCodeBookSize);
82 double *cb_new = new double[kCodeBookSize];
84 memset(cb_new, 0, sizeof(double) * kCodeBookSize);
93 for (size_t code = 0; code < kCodeBookSize; code++) {
170 if (fwrite(freq_codes_, sizeof(LmaScoreType), kCodeBookSize, fp) !=
171 kCodeBookSize)
198 (malloc(kCodeBookSize * sizeof(LmaScoreType)));
203 if (fread(freq_codes_, sizeof(LmaScoreType), kCodeBookSize, fp) !=
204 kCodeBookSize)
284 freq_codes_df_ = new double[kCodeBookSize];
286 memset(freq_codes_df_, 0, sizeof(double) * kCodeBookSize);
289 freq_codes_ = new LmaScoreType[kCodeBookSize];
291 memset(freq_codes_, 0, sizeof(LmaScoreType) * kCodeBookSize);
294 for (size_t code_pos = 0; code_pos < kCodeBookSize; code_pos++) {
313 myqsort(freq_codes_df_, kCodeBookSize, sizeof(double), comp_double);
327 for (size_t code_pos = 0; code_pos < kCodeBookSize; code_pos++) {