• Home
  • Raw
  • Download

Lines Matching refs:IsPow2

22 TEST(IsPow2, Int_Negative) {  in TEST()  argument
23 EXPECT_EQ(false, glslang::IsPow2(-5)); in TEST()
24 EXPECT_EQ(false, glslang::IsPow2(-1)); in TEST()
25 EXPECT_EQ(false, glslang::IsPow2(INT_MIN)); in TEST()
26 EXPECT_EQ(false, glslang::IsPow2(int64_t(-10))); in TEST()
29 TEST(IsPow2, Zero) { in TEST() argument
30 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST()
31 EXPECT_EQ(false, glslang::IsPow2(0u)); in TEST()
32 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST()
33 EXPECT_EQ(false, glslang::IsPow2(uint64_t(0))); in TEST()
34 EXPECT_EQ(false, glslang::IsPow2(int64_t(0))); in TEST()
37 TEST(IsPow2, Int_Positive_PowersOf2) { in TEST() argument
38 EXPECT_EQ(true, glslang::IsPow2(1)); in TEST()
39 EXPECT_EQ(true, glslang::IsPow2(2)); in TEST()
40 EXPECT_EQ(true, glslang::IsPow2(4)); in TEST()
41 EXPECT_EQ(true, glslang::IsPow2(8)); in TEST()
42 EXPECT_EQ(true, glslang::IsPow2(16)); in TEST()
43 EXPECT_EQ(true, glslang::IsPow2(32768)); in TEST()
44 EXPECT_EQ(true, glslang::IsPow2(65536)); in TEST()
45 EXPECT_EQ(true, glslang::IsPow2(2147483648)); in TEST()
48 TEST(IsPow2, Int_Positive_NonPowersOf2) { in TEST() argument
49 EXPECT_EQ(false, glslang::IsPow2(3)); in TEST()
50 EXPECT_EQ(false, glslang::IsPow2(5)); in TEST()
51 EXPECT_EQ(false, glslang::IsPow2(2147483647)); in TEST()
54 TEST(IsPow2, Uint_Positive_PowersOf2) { in TEST() argument
55 EXPECT_EQ(true, glslang::IsPow2(1u)); in TEST()
56 EXPECT_EQ(true, glslang::IsPow2(2u)); in TEST()
57 EXPECT_EQ(true, glslang::IsPow2(4u)); in TEST()
58 EXPECT_EQ(true, glslang::IsPow2(8u)); in TEST()
59 EXPECT_EQ(true, glslang::IsPow2(16u)); in TEST()
60 EXPECT_EQ(true, glslang::IsPow2(32768u)); in TEST()
61 EXPECT_EQ(true, glslang::IsPow2(65536u)); in TEST()
62 EXPECT_EQ(true, glslang::IsPow2(2147483648u)); in TEST()
65 TEST(IsPow2, Uint_Positive_NonPowersOf2) { in TEST() argument
66 EXPECT_EQ(false, glslang::IsPow2(3u)); in TEST()
67 EXPECT_EQ(false, glslang::IsPow2(5u)); in TEST()
68 EXPECT_EQ(false, glslang::IsPow2(2147483647u)); in TEST()