Lines Matching refs:FixedDiv
29 EXPECT_EQ(0x10000, libyuv::FixedDiv(1, 1)); in TEST_F()
30 EXPECT_EQ(0x7fff0000, libyuv::FixedDiv(0x7fff, 1)); in TEST_F()
35 EXPECT_EQ(0x20000, libyuv::FixedDiv(640 * 2, 640)); in TEST_F()
36 EXPECT_EQ(0x30000, libyuv::FixedDiv(640 * 3, 640)); in TEST_F()
37 EXPECT_EQ(0x40000, libyuv::FixedDiv(640 * 4, 640)); in TEST_F()
38 EXPECT_EQ(0x50000, libyuv::FixedDiv(640 * 5, 640)); in TEST_F()
39 EXPECT_EQ(0x60000, libyuv::FixedDiv(640 * 6, 640)); in TEST_F()
40 EXPECT_EQ(0x70000, libyuv::FixedDiv(640 * 7, 640)); in TEST_F()
41 EXPECT_EQ(0x80000, libyuv::FixedDiv(640 * 8, 640)); in TEST_F()
42 EXPECT_EQ(0xa0000, libyuv::FixedDiv(640 * 10, 640)); in TEST_F()
43 EXPECT_EQ(0x20000, libyuv::FixedDiv(960 * 2, 960)); in TEST_F()
44 EXPECT_EQ(0x08000, libyuv::FixedDiv(640 / 2, 640)); in TEST_F()
45 EXPECT_EQ(0x04000, libyuv::FixedDiv(640 / 4, 640)); in TEST_F()
46 EXPECT_EQ(0x20000, libyuv::FixedDiv(1080 * 2, 1080)); in TEST_F()
47 EXPECT_EQ(0x20000, libyuv::FixedDiv(200000, 100000)); in TEST_F()
48 EXPECT_EQ(0x18000, libyuv::FixedDiv(150000, 100000)); in TEST_F()
49 EXPECT_EQ(0x20000, libyuv::FixedDiv(40000, 20000)); in TEST_F()
50 EXPECT_EQ(0x20000, libyuv::FixedDiv(-40000, -20000)); in TEST_F()
51 EXPECT_EQ(-0x20000, libyuv::FixedDiv(40000, -20000)); in TEST_F()
52 EXPECT_EQ(-0x20000, libyuv::FixedDiv(-40000, 20000)); in TEST_F()
53 EXPECT_EQ(0x10000, libyuv::FixedDiv(4095, 4095)); in TEST_F()
54 EXPECT_EQ(0x10000, libyuv::FixedDiv(4096, 4096)); in TEST_F()
55 EXPECT_EQ(0x10000, libyuv::FixedDiv(4097, 4097)); in TEST_F()
56 EXPECT_EQ(123 * 65536, libyuv::FixedDiv(123, 1)); in TEST_F()
59 EXPECT_EQ(0x10000, libyuv::FixedDiv(i, i)); in TEST_F()
60 EXPECT_EQ(0x20000, libyuv::FixedDiv(i * 2, i)); in TEST_F()
61 EXPECT_EQ(0x30000, libyuv::FixedDiv(i * 3, i)); in TEST_F()
62 EXPECT_EQ(0x40000, libyuv::FixedDiv(i * 4, i)); in TEST_F()
63 EXPECT_EQ(0x08000, libyuv::FixedDiv(i, i * 2)); in TEST_F()
64 EXPECT_NEAR(16384 * 65536 / i, libyuv::FixedDiv(16384, i), 1); in TEST_F()
66 EXPECT_EQ(123 * 65536, libyuv::FixedDiv(123, 1)); in TEST_F()
78 result_opt[j] = libyuv::FixedDiv(num[j], div[j]); in TEST_F()
107 result_opt[j] = libyuv::FixedDiv(num[j], div[j]); in TEST_F()