Lines Matching refs:UINT32_C
194 EXPECT_EQ(0, getLg(UINT32_C(1), 0)); in TEST()
195 EXPECT_EQ(1, getLg(UINT32_C(1), 1)); in TEST()
196 EXPECT_EQ(1, getLg(UINT32_C(2), 0)); in TEST()
197 EXPECT_EQ(3, getLg(UINT32_C(1), 3)); in TEST()
198 EXPECT_EQ(3, getLg(UINT32_C(7), 0)); in TEST()
199 EXPECT_EQ(3, getLg(UINT32_C(8), 0)); in TEST()
200 EXPECT_EQ(3, getLg(UINT32_C(9), 0)); in TEST()
201 EXPECT_EQ(3, getLg(UINT32_C(64), -3)); in TEST()
204 EXPECT_EQ(-1, getLg(UINT32_C(1), -1)); in TEST()
205 EXPECT_EQ(-1, getLg(UINT32_C(2), -2)); in TEST()
206 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), -1)); in TEST()
207 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), 0)); in TEST()
208 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), 1)); in TEST()
228 EXPECT_EQ(0, getLgFloor(UINT32_C(1), 0)); in TEST()
229 EXPECT_EQ(1, getLgFloor(UINT32_C(1), 1)); in TEST()
230 EXPECT_EQ(1, getLgFloor(UINT32_C(2), 0)); in TEST()
231 EXPECT_EQ(2, getLgFloor(UINT32_C(7), 0)); in TEST()
232 EXPECT_EQ(3, getLgFloor(UINT32_C(1), 3)); in TEST()
233 EXPECT_EQ(3, getLgFloor(UINT32_C(8), 0)); in TEST()
234 EXPECT_EQ(3, getLgFloor(UINT32_C(9), 0)); in TEST()
235 EXPECT_EQ(3, getLgFloor(UINT32_C(64), -3)); in TEST()
238 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), -1)); in TEST()
239 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), 0)); in TEST()
240 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), 1)); in TEST()
258 EXPECT_EQ(0, getLgCeiling(UINT32_C(1), 0)); in TEST()
259 EXPECT_EQ(1, getLgCeiling(UINT32_C(1), 1)); in TEST()
260 EXPECT_EQ(1, getLgCeiling(UINT32_C(2), 0)); in TEST()
261 EXPECT_EQ(3, getLgCeiling(UINT32_C(1), 3)); in TEST()
262 EXPECT_EQ(3, getLgCeiling(UINT32_C(7), 0)); in TEST()
263 EXPECT_EQ(3, getLgCeiling(UINT32_C(8), 0)); in TEST()
264 EXPECT_EQ(3, getLgCeiling(UINT32_C(64), -3)); in TEST()
265 EXPECT_EQ(4, getLgCeiling(UINT32_C(9), 0)); in TEST()
268 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), -1)); in TEST()
269 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), 0)); in TEST()
270 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), 1)); in TEST()
288 EXPECT_EQ(0, compare(UINT32_C(0), 0, UINT32_C(0), 1)); in TEST()
289 EXPECT_EQ(0, compare(UINT32_C(0), 0, UINT32_C(0), -10)); in TEST()
290 EXPECT_EQ(0, compare(UINT32_C(0), 0, UINT32_C(0), 20)); in TEST()
291 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(64), -3)); in TEST()
292 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(32), -2)); in TEST()
293 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(16), -1)); in TEST()
294 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(8), 0)); in TEST()
295 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(4), 1)); in TEST()
296 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(2), 2)); in TEST()
297 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(1), 3)); in TEST()
298 EXPECT_EQ(-1, compare(UINT32_C(0), 0, UINT32_C(1), 3)); in TEST()
299 EXPECT_EQ(-1, compare(UINT32_C(7), 0, UINT32_C(1), 3)); in TEST()
300 EXPECT_EQ(-1, compare(UINT32_C(7), 0, UINT32_C(64), -3)); in TEST()
301 EXPECT_EQ(1, compare(UINT32_C(9), 0, UINT32_C(1), 3)); in TEST()
302 EXPECT_EQ(1, compare(UINT32_C(9), 0, UINT32_C(64), -3)); in TEST()
303 EXPECT_EQ(1, compare(UINT32_C(9), 0, UINT32_C(0), 0)); in TEST()
346 MATCH_SCALES(uint32_t, UINT32_C(1) << 31, 1, 9, 0, UINT32_C(1) << 31, 4, 1); in TEST()
347 MATCH_SCALES(uint32_t, UINT32_C(1) << 31, 2, 9, 0, UINT32_C(1) << 31, 2, 2); in TEST()
348 MATCH_SCALES(uint32_t, UINT32_C(1) << 31, 3, 9, 0, UINT32_C(1) << 31, 1, 3); in TEST()
349 MATCH_SCALES(uint32_t, UINT32_C(1) << 31, 4, 9, 0, UINT32_C(1) << 31, 0, 4); in TEST()
350 MATCH_SCALES(uint32_t, UINT32_C(1) << 30, 4, 9, 0, UINT32_C(1) << 31, 1, 3); in TEST()
351 MATCH_SCALES(uint32_t, UINT32_C(1) << 29, 4, 9, 0, UINT32_C(1) << 31, 2, 2); in TEST()
352 MATCH_SCALES(uint32_t, UINT32_C(1) << 28, 4, 9, 0, UINT32_C(1) << 31, 4, 1); in TEST()
353 MATCH_SCALES(uint32_t, UINT32_C(1) << 27, 4, 9, 0, UINT32_C(1) << 31, 9, 0); in TEST()
355 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 31, 1, 4, UINT32_C(1) << 31, 1); in TEST()
356 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 31, 2, 2, UINT32_C(1) << 31, 2); in TEST()
357 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 31, 3, 1, UINT32_C(1) << 31, 3); in TEST()
358 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 31, 4, 0, UINT32_C(1) << 31, 4); in TEST()
359 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 30, 4, 1, UINT32_C(1) << 31, 3); in TEST()
360 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 29, 4, 2, UINT32_C(1) << 31, 2); in TEST()
361 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 28, 4, 4, UINT32_C(1) << 31, 1); in TEST()
362 MATCH_SCALES(uint32_t, 9, 0, UINT32_C(1) << 27, 4, 9, UINT32_C(1) << 31, 0); in TEST()
401 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 32, 1, 0)); in TEST()
402 EXPECT_EQ(SP32(UINT32_C(1) << 31, -31), getSum32(1, -32, 1, 0)); in TEST()
405 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), getSum32(1, 32, 1, 1)); in TEST()
406 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -32), getSum32(1, -32, 1, -1)); in TEST()
409 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 0, UINT32_MAX, 0)); in TEST()
419 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 0, 1, 32)); in TEST()
420 EXPECT_EQ(SP32(UINT32_C(1) << 31, -31), getSum32(1, 0, 1, -32)); in TEST()
421 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), getSum32(1, 1, 1, 32)); in TEST()
422 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -32), getSum32(1, -1, 1, -32)); in TEST()
423 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(UINT32_MAX, 0, 1, 0)); in TEST()
480 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), in TEST()
481 getDifference32((UINT32_C(1) << 31) + 1, 1, 1, 0)); in TEST()
482 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -31), in TEST()
483 getDifference32((UINT32_C(1) << 31) + 1, -31, 1, -32)); in TEST()
499 EXPECT_EQ(SP32(UINT32_C(1) << 26, -31), in TEST()
500 getDifference32(1, 0, UINT32_C(31) << 27, -32)); in TEST()