Searched refs:as_signed (Results 1 – 1 of 1) sorted by relevance
736 int32_t as_signed = static_cast<int32_t>(val); in sign_extend32() local738 as_signed -= static_cast<int32_t>(top_bit * 2); in sign_extend32()739 return as_signed; in sign_extend32()752 int32_t as_signed = static_cast<int32_t>(val); in has_overflow32() local753 return as_signed > max || as_signed < min; in has_overflow32()768 int32_t as_signed = static_cast<int32_t>(val); in has_signed_unsigned_overflow32() local769 return as_signed > max || as_signed < min; in has_signed_unsigned_overflow32()790 int64_t as_signed = static_cast<int64_t>(val); in sign_extend() local792 as_signed -= static_cast<int64_t>(top_bit * 2); in sign_extend()793 return as_signed; in sign_extend()[all …]