comparison run/a/asm_pextrw_01_A.d @ 1285:229e630d4b1a

partuial inline asm review
author thomask
date Tue, 26 Dec 2006 14:21:37 +0000
parents 6e5d377573e1
children
comparison
equal deleted inserted replaced
1284:96e7be832c35 1285:229e630d4b1a
14 import addon.cpuinfo; 14 import addon.cpuinfo;
15 15
16 int main(){ 16 int main(){
17 haveSSE!()(); 17 haveSSE!()();
18 18
19 ushort* x = [cast(ushort)1, 2, 3, 4, 5, 0xFFFF, 7, 0]; 19 ushort[] X = [cast(ushort)1, 2, 3, 4, 5, 0xFFFF, 7, 0];
20 ushort* x = X.ptr;
21
20 uint a; 22 uint a;
21 uint b; 23 uint b;
22 24
23 static if(size_t.sizeof == 4){ 25 static if(size_t.sizeof == 4){
24 asm{ 26 asm{