History

Code cleaning: utilize vpushll().

Shinichiro Hamaji committed 17 years ago

Commit 006c9071 parent 4f056031 file · +1 −7Browse files

Unified · Split

tcc.c+1−7
@@ -5890,13 +5890,7 @@ void gen_op(int op) · 5889 unmodified lines
5890 }5890 }
5891 type1 = vtop[-1].type;5891 type1 = vtop[-1].type;
5892#ifdef TCC_TARGET_X86_645892#ifdef TCC_TARGET_X86_64
5893 {5893 vpushll(pointed_size(&vtop[-1].type));
5894 CValue cval;
5895 CType ctype;
5896 ctype.t = VT_LLONG;
5897 cval.ull = pointed_size(&vtop[-1].type);
5898 vsetc(&ctype, VT_CONST, &cval);
5899 }
5900#else5894#else
5901 /* XXX: cast to int ? (long long case) */5895 /* XXX: cast to int ? (long long case) */
5902 vpushi(pointed_size(&vtop[-1].type));5896 vpushi(pointed_size(&vtop[-1].type));

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