Searched refs:top_bit (Results 1 – 1 of 1) sorted by relevance
735 uint32_t top_bit = 1U << (bits - 1); in sign_extend32() local737 if ((val & top_bit) != 0) in sign_extend32()738 as_signed -= static_cast<int32_t>(top_bit * 2); in sign_extend32()789 uint64_t top_bit = static_cast<uint64_t>(1) << (bits - 1); in sign_extend() local791 if ((val & top_bit) != 0) in sign_extend()792 as_signed -= static_cast<int64_t>(top_bit * 2); in sign_extend()