History

arm-asm: Optimize gen_le32

Danny Milosavljevic committed 5 years ago

Commit b940d8e1 parent b85c3e11 file · +10 −2Browse files

Unified · Split

arm-asm.c+10−2
@@ -134,8 +134,16 @@ ST_FUNC void gen_le16 (int i) · 133 unmodified lines
134 134
135ST_FUNC void gen_le32 (int i)135ST_FUNC void gen_le32 (int i)
136{136{
137 gen_le16(i);137 int ind1;
138 gen_le16(i>>16);138 if (nocode_wanted)
139 return;
140 ind1 = ind + 4;
141 if (ind1 > cur_text_section->data_allocated)
142 section_realloc(cur_text_section, ind1);
143 cur_text_section->data[ind++] = i & 0xFF;
144 cur_text_section->data[ind++] = (i >> 8) & 0xFF;
145 cur_text_section->data[ind++] = (i >> 16) & 0xFF;
146 cur_text_section->data[ind++] = (i >> 24) & 0xFF;
139}147}
140 148
141ST_FUNC void gen_expr32(ExprValue *pe)149ST_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