Lines Matching refs:i
37 for (int i = 0; i < 128; i++) in and()
38 a[i] &= x; // NOTE: bitwise and, not the common && in and()
50 for (int i = 0; i < 128; i++) in or()
51 a[i] |= x; // NOTE: bitwise or, not the common || in or()
63 for (int i = 0; i < 128; i++) in xor()
64 a[i] ^= x; // NOTE: bitwise xor in xor()
76 for (int i = 0; i < 128; i++) in not()
77 a[i] = !a[i]; in not()
87 for (int i = 0; i < 128; i++) { in main()
88 a[i] = (i & 1) == 0; in main()
92 for (int i = 0; i < 128; i++) { in main()
93 expectEquals((i & 1) == 0, a[i], "and-true"); in main()
96 for (int i = 0; i < 128; i++) { in main()
97 expectEquals((i & 1) != 0, a[i], "xor-true"); in main()
100 for (int i = 0; i < 128; i++) { in main()
101 expectEquals((i & 1) != 0, a[i], "xor-false"); in main()
104 for (int i = 0; i < 128; i++) { in main()
105 expectEquals((i & 1) == 0, a[i], "not"); in main()
108 for (int i = 0; i < 128; i++) { in main()
109 expectEquals(true, a[i], "or-true"); in main()
112 for (int i = 0; i < 128; i++) { in main()
113 expectEquals(false, a[i], "and-false"); in main()
116 for (int i = 0; i < 128; i++) { in main()
117 expectEquals(false, a[i], "or-false"); in main()