Lines Matching defs:bits
333 DCHECK(m >= 4 && base::bits::IsPowerOfTwo(m));
676 int bits = OffsetSizeInBits(instr);
677 const int32_t mask = (1 << bits) - 1;
678 bits = 32 - bits;
682 int32_t imm = ((instr & mask) << bits) >> (bits - 2);
791 int32_t bits = OffsetSizeInBits(instr);
796 const int32_t mask = (1 << bits) - 1;
798 DCHECK(is_intn(imm, bits));
1022 bool Assembler::is_near(Label* L, OffsetSize bits) {
1025 (1 << (bits + 2 - 1)) - 1 - 5 * kInstrSize);
1034 // At pre-R6 and for other R6 branches the offset is 16 bits.
1035 int bits = OffsetSize::kOffset16;
1043 bits = OffsetSize::kOffset26;
1049 if (GetRsField(instr) != 0) bits = OffsetSize::kOffset21;
1056 return (1 << (bits + 2 - 1)) - 1;
1060 // if they can be encoded in the MIPS's 16 bits of immediate-offset instruction
1385 int32_t Assembler::branch_offset_helper(Label* L, OffsetSize bits) {
1406 DCHECK(is_intn(offset, bits + 2));
3947 // fits in just 16 bits. This is unlikely to help, and should be benchmarked,
3952 // in code on MIP64 because only 48-bits of address is effectively used.
3953 // It relies on fact the upper [63:48] bits are not used for virtual address