Lines Matching refs:row2
47 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein() local
55 row2[0] = (i + 1) * d; in levenshtein()
58 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein()
62 row2[j + 1] > row0[j - 1] + w) in levenshtein()
63 row2[j + 1] = row0[j - 1] + w; in levenshtein()
65 if (row2[j + 1] > row1[j + 1] + d) in levenshtein()
66 row2[j + 1] = row1[j + 1] + d; in levenshtein()
68 if (row2[j + 1] > row2[j] + a) in levenshtein()
69 row2[j + 1] = row2[j] + a; in levenshtein()
74 row1 = row2; in levenshtein()
75 row2 = dummy; in levenshtein()
81 free(row2); in levenshtein()