Lines Matching defs:coords
37 PointerCoords coords;
38 coords.clear();
40 ASSERT_EQ(0ULL, coords.bits);
45 PointerCoords coords;
46 coords.clear();
49 ASSERT_EQ(0, coords.getAxisValue(0))
51 ASSERT_EQ(0, coords.getAxisValue(1))
55 ASSERT_EQ(OK, coords.setAxisValue(1, 5));
56 ASSERT_EQ(5, coords.values[0]);
57 ASSERT_EQ(0x4000000000000000ULL, coords.bits);
59 ASSERT_EQ(0, coords.getAxisValue(0))
61 ASSERT_EQ(5, coords.getAxisValue(1))
65 ASSERT_EQ(OK, coords.setAxisValue(3, 2));
66 ASSERT_EQ(0x5000000000000000ULL, coords.bits);
67 ASSERT_EQ(5, coords.values[0]);
68 ASSERT_EQ(2, coords.values[1]);
70 ASSERT_EQ(0, coords.getAxisValue(0))
72 ASSERT_EQ(5, coords.getAxisValue(1))
74 ASSERT_EQ(0, coords.getAxisValue(2))
76 ASSERT_EQ(2, coords.getAxisValue(3))
80 ASSERT_EQ(OK, coords.setAxisValue(0, 4));
81 ASSERT_EQ(0xd000000000000000ULL, coords.bits);
82 ASSERT_EQ(4, coords.values[0]);
83 ASSERT_EQ(5, coords.values[1]);
84 ASSERT_EQ(2, coords.values[2]);
86 ASSERT_EQ(4, coords.getAxisValue(0))
88 ASSERT_EQ(5, coords.getAxisValue(1))
90 ASSERT_EQ(0, coords.getAxisValue(2))
92 ASSERT_EQ(2, coords.getAxisValue(3))
96 ASSERT_EQ(OK, coords.setAxisValue(2, 1));
97 ASSERT_EQ(0xf000000000000000ULL, coords.bits);
98 ASSERT_EQ(4, coords.values[0]);
99 ASSERT_EQ(5, coords.values[1]);
100 ASSERT_EQ(1, coords.values[2]);
101 ASSERT_EQ(2, coords.values[3]);
103 ASSERT_EQ(4, coords.getAxisValue(0))
105 ASSERT_EQ(5, coords.getAxisValue(1))
107 ASSERT_EQ(1, coords.getAxisValue(2))
109 ASSERT_EQ(2, coords.getAxisValue(3))
113 ASSERT_EQ(OK, coords.setAxisValue(1, 6));
114 ASSERT_EQ(0xf000000000000000ULL, coords.bits);
115 ASSERT_EQ(4, coords.values[0]);
116 ASSERT_EQ(6, coords.values[1]);
117 ASSERT_EQ(1, coords.values[2]);
118 ASSERT_EQ(2, coords.values[3]);
120 ASSERT_EQ(4, coords.getAxisValue(0))
122 ASSERT_EQ(6, coords.getAxisValue(1))
124 ASSERT_EQ(1, coords.getAxisValue(2))
126 ASSERT_EQ(2, coords.getAxisValue(3))
131 ASSERT_EQ(OK, coords.setAxisValue(axis, axis));
133 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits));
137 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100));
138 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits));
148 // Round trip with empty coords.