Searched refs:Div (Results 1 – 8 of 8) sorted by relevance
75 TEST(Intrinsics, Div) { in TEST() argument76 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{0})), int8_t{-1}); in TEST()77 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{-1})), int8_t{-128}); in TEST()78 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{-2})), int8_t{64}); in TEST()79 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{0})), uint8_t{255}); in TEST()80 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{1})), uint8_t{128}); in TEST()81 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{2})), uint8_t{64}); in TEST()82 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{0})), int16_t{-1}); in TEST()83 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-1})), int16_t{-32768}); in TEST()84 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-2})), int16_t{16384}); in TEST()[all …]
21 TEST(Div, Div) { in TEST() argument29 TEST(Div, LDiv) { in TEST() argument37 TEST(Div, LLDiv) { in TEST() argument45 TEST(Div, IMaxDiv) { in TEST() argument
77 Div<IntType>(src); in MacroDiv()136 Div<IntType>(src); in MacroRem()
131 static_assert(Div(SatInt8{127}, SatInt8{1}) == std::tuple{SatInt8{127}, false});132 static_assert(Div(SatInt8{-128}, SatInt8{-1}) == std::tuple{SatInt8{127}, true});137 static_assert(Div(SatUInt8{255}, SatUInt8{1}) == std::tuple{SatUInt8{255}, false});
415 return listener_->template Div<int64_t>(arg1, arg2); in Op()417 return listener_->template Div<uint64_t>(arg1, arg2); in Op()457 return listener_->template Div<int32_t>(arg1, arg2); in Op()459 return listener_->template Div<uint32_t>(arg1, arg2); in Op()
212 DEFINE_ARITH_INSTRUCTION(Div, Div, kUnsignedIntType)213 DEFINE_ARITH_INSTRUCTION(Div, Idiv, kSignedIntType)
536 [[nodiscard]] friend constexpr std::tuple<Saturating, bool> Div(Saturating lhs, Saturating rhs) { in Div() function545 return std::get<0>(Div(lhs, rhs));
1197 ElementType{std::get<0>(Div(static_cast<typename ElementType::BaseType>(args)...))})1200 ElementType{std::get<0>(Div(static_cast<typename ElementType::BaseType>(args)...))})