Lines Matching refs:diff

226 	sljit_sw diff;  in detect_jump_type()  local
235 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
239 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
244 if (diff <= 127 && diff >= -128) { in detect_jump_type()
248 if (diff <= 524287 && diff >= -524288) { in detect_jump_type()
253 diff--; in detect_jump_type()
254 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
260 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
266 if (diff <= 1023 && diff >= -1024) { in detect_jump_type()
270 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
282 sljit_sw diff; in set_jump_instruction() local
293 diff = ((sljit_sw)jump->u.target - (sljit_sw)(jump->addr + 4)) >> 1; in set_jump_instruction()
296 diff = ((sljit_sw)(jump->u.label->addr) - (sljit_sw)(jump->addr + 4)) >> 1; in set_jump_instruction()
302 SLJIT_ASSERT(diff <= 127 && diff >= -128 && (jump->flags & IS_COND)); in set_jump_instruction()
303 jump_inst[0] = 0xd000 | (jump->flags & 0xf00) | (diff & 0xff); in set_jump_instruction()
307 SLJIT_ASSERT(diff <= 524287 && diff >= -524288 && (jump->flags & IS_COND)); in set_jump_instruction()
308 …t[0] = 0xf000 | COPY_BITS(jump->flags, 8, 6, 4) | COPY_BITS(diff, 11, 0, 6) | COPY_BITS(diff, 19, … in set_jump_instruction()
309 jump_inst[1] = 0x8000 | COPY_BITS(diff, 17, 13, 1) | COPY_BITS(diff, 18, 11, 1) | (diff & 0x7ff); in set_jump_instruction()
314 diff--; in set_jump_instruction()
319 SLJIT_ASSERT(diff <= 1023 && diff >= -1024 && !(jump->flags & IS_COND)); in set_jump_instruction()
320 jump_inst[0] = 0xe000 | (diff & 0x7ff); in set_jump_instruction()
324 SLJIT_ASSERT(diff <= 8388607 && diff >= -8388608); in set_jump_instruction()
327 s = (diff >> 23) & 0x1; in set_jump_instruction()
328 j1 = (~(diff >> 21) ^ s) & 0x1; in set_jump_instruction()
329 j2 = (~(diff >> 22) ^ s) & 0x1; in set_jump_instruction()
330 jump_inst[0] = 0xf000 | (s << 10) | COPY_BITS(diff, 11, 0, 10); in set_jump_instruction()
331 jump_inst[1] = (j1 << 13) | (j2 << 11) | (diff & 0x7ff); in set_jump_instruction()
980 sljit_sw diff; in can_cache() local
985 diff = argw - next_argw; in can_cache()
986 if (diff <= 0xfff && diff >= -0xfff) in can_cache()
994 diff = argw - next_argw; in can_cache()
995 if (arg == next_arg && diff <= 0xfff && diff >= -0xfff) in can_cache()
1006 sljit_sw diff; in getput_arg() local
1064 diff = argw - compiler->cache_argw; in getput_arg()
1065 if (!(diff & ~0xfff)) in getput_arg()
1066 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(TMP_REG3) | diff); in getput_arg()
1069 if (emit_set_delta(compiler, TMP_REG3, TMP_REG3, diff) != SLJIT_ERR_UNSUPPORTED) { in getput_arg()
1097 diff = argw - next_argw; in getput_arg()
1098 if (next_arg && diff <= 0xfff && diff >= -0xfff) { in getput_arg()