Lines Matching defs:bits
39 #include "src/base/bits.h"
355 DCHECK(m >= 4 && base::bits::IsPowerOfTwo(m));
724 int bits = OffsetSizeInBits(instr);
725 const int32_t mask = (1 << bits) - 1;
726 bits = 32 - bits;
730 int32_t imm = ((instr & mask) << bits) >> (bits - 2);
884 int32_t bits = OffsetSizeInBits(instr);
889 const int32_t mask = (1 << bits) - 1;
891 DCHECK(is_intn(imm, bits));
1094 bool Assembler::is_near(Label* L, OffsetSize bits) {
1096 return pc_offset() - L->pos() < (1 << (bits + 2 - 1)) - 1 - 5 * kInstrSize;
1105 // At pre-R6 and for other R6 branches the offset is 16 bits.
1106 int bits = OffsetSize::kOffset16;
1114 bits = OffsetSize::kOffset26;
1120 if (GetRsField(instr) != 0) bits = OffsetSize::kOffset21;
1127 return (1 << (bits + 2 - 1)) - 1;
1131 // if they can be encoded in the MIPS's 16 bits of immediate-offset instruction
1441 int32_t Assembler::branch_offset_helper(Label* L, OffsetSize bits) {
1462 DCHECK(is_intn(offset, bits + 2));
3736 // of which load 16 bits of the 32-bit address to a register.