Searched refs:IsUnsignedInt (Results 1 – 2 of 2) sorted by relevance
43 static bool IsUnsignedInt(FormatMode mode) { in IsUnsignedInt() function49 return IsSignedInt(mode) || IsUnsignedInt(mode); in IsInt()70 return IsUnsignedInt(mode) && num_bits == 8; in IsUint8()73 return IsUnsignedInt(mode) && num_bits == 16; in IsUint16()76 return IsUnsignedInt(mode) && num_bits == 32; in IsUint32()79 return IsUnsignedInt(mode) && num_bits == 64; in IsUint64()
242 TEST_F(TypeTest, IsUnsignedInt) { in TEST_F() argument243 EXPECT_FALSE(Type::IsUnsignedInt(FormatMode::kSInt)); in TEST_F()244 EXPECT_FALSE(Type::IsUnsignedInt(FormatMode::kSNorm)); in TEST_F()245 EXPECT_FALSE(Type::IsUnsignedInt(FormatMode::kSScaled)); in TEST_F()246 EXPECT_TRUE(Type::IsUnsignedInt(FormatMode::kSRGB)); in TEST_F()247 EXPECT_TRUE(Type::IsUnsignedInt(FormatMode::kUNorm)); in TEST_F()248 EXPECT_TRUE(Type::IsUnsignedInt(FormatMode::kUInt)); in TEST_F()249 EXPECT_TRUE(Type::IsUnsignedInt(FormatMode::kUScaled)); in TEST_F()250 EXPECT_FALSE(Type::IsUnsignedInt(FormatMode::kSFloat)); in TEST_F()251 EXPECT_FALSE(Type::IsUnsignedInt(FormatMode::kUFloat)); in TEST_F()