Lines Matching defs:nbits
194 static int inv_simm( int x, int nbits ) { return Assembler::inv_simm(x, nbits); }
195 static intptr_t inv_wdisp( int x, int nbits ) { return Assembler::inv_wdisp( x, 0, nbits); }
210 static bool fits_in_simm(int x, int nbits) {
212 // return -(1 << nbits-1) <= x && x < ( 1 << nbits-1),
213 return (unsigned)(x + (1 << nbits-1)) < (unsigned)(1 << nbits);
217 static int set_simm(int insn, int imm, int nbits) {
218 return (insn &~ Assembler::simm(-1, nbits)) | Assembler::simm(imm, nbits);
222 static int set_wdisp(int insn, intptr_t disp, int nbits) {
223 return (insn &~ Assembler::wdisp((intptr_t)-4, (intptr_t)0, nbits)) | Assembler::wdisp(disp, 0, nbits);