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()
116 for (int i = 0; i < 128; i++) in conv()
117 a[i] = b[i]; in conv()
125 for (int i = 1; i < 127; i++) in bounds()
126 a[i] += 11; in bounds()
136 for (int i = 0; i < 128; i++) { in main()
137 a[i] = i; in main()
141 for (int i = 0; i < 128; i++) { in main()
142 expectEquals(i + 2, a[i], "add"); in main()
145 for (int i = 0; i < 128; i++) { in main()
146 expectEquals(i, a[i], "sub"); in main()
149 for (int i = 0; i < 128; i++) { in main()
150 expectEquals(i + i, a[i], "mul"); in main()
153 for (int i = 0; i < 128; i++) { in main()
154 expectEquals(i, a[i], "div"); in main()
157 for (int i = 0; i < 128; i++) { in main()
158 expectEquals(-i, a[i], "neg"); in main()
163 for (int i = 1; i < 127; i++) { in main()
164 expectEquals(11 - i, a[i], "bounds"); in main()
170 for (int i = 1; i <= 11; i++) { in main()
171 expectEquals(11 - i, a[i], "abs_lo"); in main()
173 for (int i = 12; i < 127; i++) { in main()
174 expectEquals(i - 11, a[i], "abs_hi"); in main()
179 for (int i = 0; i < 128; i++) { in main()
180 b[i] = 1000 * i; in main()
183 for (int i = 1; i < 127; i++) { in main()
184 expectEquals(1000.0f * i, a[i], "conv"); in main()