History

riscv64-asm: Optimize gen_le32

Danny Milosavljevic committed 5 years ago

Commit 468f3381 parent 99189ea1 file · +10 −2Browse files

Unified · Split

riscv64-asm.c+10−2
@@ -40,8 +40,16 @@ ST_FUNC void gen_le16 (int i) · 39 unmodified lines
40 40
41ST_FUNC void gen_le32 (int i)41ST_FUNC void gen_le32 (int i)
42{42{
43 gen_le16(i);43 int ind1;
44 gen_le16(i>>16);44 if (nocode_wanted)
45 return;
46 ind1 = ind + 4;
47 if (ind1 > cur_text_section->data_allocated)
48 section_realloc(cur_text_section, ind1);
49 cur_text_section->data[ind++] = i & 0xFF;
50 cur_text_section->data[ind++] = (i >> 8) & 0xFF;
51 cur_text_section->data[ind++] = (i >> 16) & 0xFF;
52 cur_text_section->data[ind++] = (i >> 24) & 0xFF;
45}53}
46 54
47ST_FUNC void gen_expr32(ExprValue *pe)55ST_FUNC void gen_expr32(ExprValue *pe)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t