Lines Matching refs:i
40 for (int i = 0; i < 128; i++) in add()
41 a[i] += x; in add()
55 for (int i = 0; i < 128; i++) in sub()
56 a[i] -= x; in sub()
70 for (int i = 0; i < 128; i++) in mul()
71 a[i] *= x; in mul()
85 for (int i = 0; i < 128; i++) in div()
86 a[i] /= x; in div()
100 for (int i = 0; i < 128; i++) in neg()
101 a[i] = -a[i]; in neg()
115 for (int i = 0; i < 128; i++) in abs()
116 a[i] = Math.abs(a[i]); in abs()
128 for (int i = 0; i < 128; i++) in conv()
129 a[i] = b[i]; in conv()
137 for (int i = 1; i < 127; i++) in bounds()
138 a[i] += 11; in bounds()
148 for (int i = 0; i < 128; i++) { in main()
149 a[i] = i; in main()
153 for (int i = 0; i < 128; i++) { in main()
154 expectEquals(i + 2, a[i], "add"); in main()
157 for (int i = 0; i < 128; i++) { in main()
158 expectEquals(i, a[i], "sub"); in main()
161 for (int i = 0; i < 128; i++) { in main()
162 expectEquals(i + i, a[i], "mul"); in main()
165 for (int i = 0; i < 128; i++) { in main()
166 expectEquals(i, a[i], "div"); in main()
169 for (int i = 0; i < 128; i++) { in main()
170 expectEquals(-i, a[i], "neg"); in main()
175 for (int i = 1; i < 127; i++) { in main()
176 expectEquals(11 - i, a[i], "bounds"); in main()
182 for (int i = 1; i <= 11; i++) { in main()
183 expectEquals(11 - i, a[i], "abs_lo"); in main()
185 for (int i = 12; i < 127; i++) { in main()
186 expectEquals(i - 11, a[i], "abs_hi"); in main()
191 for (int i = 0; i < 128; i++) { in main()
192 b[i] = 1000 * i; in main()
195 for (int i = 1; i < 127; i++) { in main()
196 expectEquals(1000.0 * i, a[i], "conv"); in main()