Searched refs:IsSignedInt (Results 1 – 2 of 2) sorted by relevance
38 static bool IsSignedInt(FormatMode mode) { in IsSignedInt() function49 return IsSignedInt(mode) || IsUnsignedInt(mode); in IsInt()57 return IsSignedInt(mode) && num_bits == 8; in IsInt8()60 return IsSignedInt(mode) && num_bits == 16; in IsInt16()63 return IsSignedInt(mode) && num_bits == 32; in IsInt32()66 return IsSignedInt(mode) && num_bits == 64; in IsInt64()
230 TEST_F(TypeTest, IsSignedInt) { in TEST_F() argument231 EXPECT_TRUE(Type::IsSignedInt(FormatMode::kSInt)); in TEST_F()232 EXPECT_TRUE(Type::IsSignedInt(FormatMode::kSNorm)); in TEST_F()233 EXPECT_TRUE(Type::IsSignedInt(FormatMode::kSScaled)); in TEST_F()234 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kSRGB)); in TEST_F()235 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kUNorm)); in TEST_F()236 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kUInt)); in TEST_F()237 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kUScaled)); in TEST_F()238 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kSFloat)); in TEST_F()239 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kUFloat)); in TEST_F()