Lines Matching refs:diff
229 sljit_sw diff; in detect_jump_type() local
238 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset) >> 1; in detect_jump_type()
242 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
247 if (diff <= 127 && diff >= -128) { in detect_jump_type()
251 if (diff <= 524287 && diff >= -524288) { in detect_jump_type()
256 diff--; in detect_jump_type()
257 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
263 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
269 if (diff <= 1023 && diff >= -1024) { in detect_jump_type()
273 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
285 sljit_sw diff; in set_jump_instruction() local
296 …diff = ((sljit_sw)jump->u.target - (sljit_sw)(jump->addr + sizeof(sljit_u32)) - executable_offset)… in set_jump_instruction()
300 …diff = ((sljit_sw)(jump->u.label->addr) - (sljit_sw)(jump->addr + sizeof(sljit_u32)) - executable_… in set_jump_instruction()
307 SLJIT_ASSERT(diff <= 127 && diff >= -128 && (jump->flags & IS_COND)); in set_jump_instruction()
308 jump_inst[0] = 0xd000 | (jump->flags & 0xf00) | (diff & 0xff); in set_jump_instruction()
312 SLJIT_ASSERT(diff <= 524287 && diff >= -524288 && (jump->flags & IS_COND)); in set_jump_instruction()
313 …t[0] = 0xf000 | COPY_BITS(jump->flags, 8, 6, 4) | COPY_BITS(diff, 11, 0, 6) | COPY_BITS(diff, 19, … in set_jump_instruction()
314 jump_inst[1] = 0x8000 | COPY_BITS(diff, 17, 13, 1) | COPY_BITS(diff, 18, 11, 1) | (diff & 0x7ff); in set_jump_instruction()
319 diff--; in set_jump_instruction()
324 SLJIT_ASSERT(diff <= 1023 && diff >= -1024 && !(jump->flags & IS_COND)); in set_jump_instruction()
325 jump_inst[0] = 0xe000 | (diff & 0x7ff); in set_jump_instruction()
329 SLJIT_ASSERT(diff <= 8388607 && diff >= -8388608); in set_jump_instruction()
332 s = (diff >> 23) & 0x1; in set_jump_instruction()
333 j1 = (~(diff >> 21) ^ s) & 0x1; in set_jump_instruction()
334 j2 = (~(diff >> 22) ^ s) & 0x1; in set_jump_instruction()
335 jump_inst[0] = 0xf000 | (s << 10) | COPY_BITS(diff, 11, 0, 10); in set_jump_instruction()
336 jump_inst[1] = (j1 << 13) | (j2 << 11) | (diff & 0x7ff); in set_jump_instruction()