Lines Matching defs:insertAt
51 int insertAt = 0;
52 while (insertAt < MAX_RESULTS) {
53 if (probability > bigramProbability[insertAt] || (bigramProbability[insertAt] == probability
55 bigramCodePoints + insertAt * MAX_WORD_LENGTH))) {
58 insertAt++;
61 AKLOGI("Bigram: InsertAt -> %d MAX_RESULTS: %d", insertAt, MAX_RESULTS);
63 if (insertAt >= MAX_RESULTS) {
66 memmove(bigramProbability + (insertAt + 1),
67 bigramProbability + insertAt,
68 (MAX_RESULTS - insertAt - 1) * sizeof(bigramProbability[0]));
69 bigramProbability[insertAt] = probability;
70 outputTypes[insertAt] = Dictionary::KIND_PREDICTION;
71 memmove(bigramCodePoints + (insertAt + 1) * MAX_WORD_LENGTH,
72 bigramCodePoints + insertAt * MAX_WORD_LENGTH,
73 (MAX_RESULTS - insertAt - 1) * sizeof(bigramCodePoints[0]) * MAX_WORD_LENGTH);
74 int *dest = bigramCodePoints + insertAt * MAX_WORD_LENGTH;
80 AKLOGI("Bigram: Added word at %d", insertAt);