Skip to content

Commit 2fabe27

Browse files
committed
JIT/AArch64: Rename B_IMM26 into B_IMM.
1 parent a6bb79f commit 2fabe27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ static int sp_adj[SP_ADJ_LAST];
109109
#define LDR_STR_PIMM32 (MAX_IMM12*4) // ldr/str insn for 32-bit register: pimm is imm12 * 4
110110
#define LDRB_STRB_PIMM MAX_IMM12 // ldrb/strb insn
111111

112-
#define B_IMM26 (1<<27) // signed imm26 * 4
112+
#define B_IMM (1<<27) // signed imm26 * 4
113113

114114
static bool arm64_may_use_b(const void *addr)
115115
{
116116
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);
118118
} else if (addr >= dasm_end) {
119-
return (((char*)addr - (char*)dasm_buf) < B_IMM26);
119+
return (((char*)addr - (char*)dasm_buf) < B_IMM);
120120
} else if (addr < dasm_buf) {
121-
return (((char*)dasm_end - (char*)addr) < B_IMM26);
121+
return (((char*)dasm_end - (char*)addr) < B_IMM);
122122
}
123123
return 0;
124124
}

0 commit comments

Comments
 (0)