Lines Matching refs:i
38 for (int i = 0; i < 128; i++) in add()
39 a[i] += x; in add()
51 for (int i = 0; i < 128; i++) in sub()
52 a[i] -= x; in sub()
64 for (int i = 0; i < 128; i++) in mul()
65 a[i] *= x; in mul()
77 for (int i = 0; i < 128; i++) in div()
78 a[i] /= x; in div()
90 for (int i = 0; i < 128; i++) in neg()
91 a[i] = -a[i]; in neg()
103 for (int i = 0; i < 128; i++) in abs()
104 a[i] = Math.abs(a[i]); in abs()
117 for (int i = 0; i < 128; i++) in conv()
118 a[i] = b[i]; in conv()
126 for (int i = 1; i < 127; i++) in bounds()
127 a[i] += 11; in bounds()
137 for (int i = 0; i < 128; i++) { in main()
138 a[i] = i; in main()
142 for (int i = 0; i < 128; i++) { in main()
143 expectEquals(i + 2, a[i], "add"); in main()
146 for (int i = 0; i < 128; i++) { in main()
147 expectEquals(i, a[i], "sub"); in main()
150 for (int i = 0; i < 128; i++) { in main()
151 expectEquals(i + i, a[i], "mul"); in main()
154 for (int i = 0; i < 128; i++) { in main()
155 expectEquals(i, a[i], "div"); in main()
158 for (int i = 0; i < 128; i++) { in main()
159 expectEquals(-i, a[i], "neg"); in main()
164 for (int i = 1; i < 127; i++) { in main()
165 expectEquals(11 - i, a[i], "bounds"); in main()
171 for (int i = 1; i <= 11; i++) { in main()
172 expectEquals(11 - i, a[i], "abs_lo"); in main()
174 for (int i = 12; i < 127; i++) { in main()
175 expectEquals(i - 11, a[i], "abs_hi"); in main()
180 for (int i = 0; i < 128; i++) { in main()
181 b[i] = 1000 * i; in main()
184 for (int i = 1; i < 127; i++) { in main()
185 expectEquals(1000.0 * i, a[i], "conv"); in main()