File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,16 @@ static int sp_adj[SP_ADJ_LAST];
109
109
#define LDR_STR_PIMM32 (MAX_IMM12*4) // ldr/str insn for 32-bit register: pimm is imm12 * 4
110
110
#define LDRB_STRB_PIMM MAX_IMM12 // ldrb/strb insn
111
111
112
- #define B_IMM26 (1<<27) // signed imm26 * 4
112
+ #define B_IMM (1<<27) // signed imm26 * 4
113
113
114
114
static bool arm64_may_use_b(const void *addr)
115
115
{
116
116
if (addr >= dasm_buf && addr < dasm_end) {
117
- return (((char*)dasm_end - (char*)dasm_buf) < B_IMM26 );
117
+ return (((char*)dasm_end - (char*)dasm_buf) < B_IMM );
118
118
} else if (addr >= dasm_end) {
119
- return (((char*)addr - (char*)dasm_buf) < B_IMM26 );
119
+ return (((char*)addr - (char*)dasm_buf) < B_IMM );
120
120
} else if (addr < dasm_buf) {
121
- return (((char*)dasm_end - (char*)addr) < B_IMM26 );
121
+ return (((char*)dasm_end - (char*)addr) < B_IMM );
122
122
}
123
123
return 0;
124
124
}
You can’t perform that action at this time.
0 commit comments