mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
disp8: make constant arrays in get_disp8N() static
The constant arrays in get_disp8N() should be static; otherwise the compiler has to manifest them on the stack for every execution which makes no sense at all. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
0cb6739ba4
commit
7a82ebe7bd
@ -42,10 +42,10 @@
|
||||
*/
|
||||
uint8_t get_disp8N(insn *ins)
|
||||
{
|
||||
const uint8_t fv_n[2][2][VLMAX] = {{{16, 32, 64}, {4, 4, 4}},
|
||||
{{16, 32, 64}, {8, 8, 8}}};
|
||||
const uint8_t hv_n[2][VLMAX] = {{8, 16, 32}, {4, 4, 4}};
|
||||
const uint8_t dup_n[VLMAX] = {8, 32, 64};
|
||||
static const uint8_t fv_n[2][2][VLMAX] = {{{16, 32, 64}, {4, 4, 4}},
|
||||
{{16, 32, 64}, {8, 8, 8}}};
|
||||
static const uint8_t hv_n[2][VLMAX] = {{8, 16, 32}, {4, 4, 4}};
|
||||
static const uint8_t dup_n[VLMAX] = {8, 32, 64};
|
||||
|
||||
bool evex_b = (ins->evex_p[2] & EVEX_P2B) >> 4;
|
||||
enum ttypes tuple = ins->evex_tuple;
|
||||
|
Loading…
Reference in New Issue
Block a user