Mercurial > projects > dstress
diff run/a/asm_pmaxub_01_A.d @ 1290:e3d0dea394ab
partial inline asm review
author | thomask |
---|---|
date | Wed, 27 Dec 2006 11:59:48 +0000 |
parents | 6e5d377573e1 |
children |
line wrap: on
line diff
--- a/run/a/asm_pmaxub_01_A.d Wed Dec 27 11:59:35 2006 +0000 +++ b/run/a/asm_pmaxub_01_A.d Wed Dec 27 11:59:48 2006 +0000 @@ -16,9 +16,13 @@ int main(){ haveSSE!()(); - ubyte* a = [cast(ubyte) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]; - ubyte* b = [cast(ubyte)15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 17]; - ubyte* c = new ubyte[16]; + ubyte[] A = [cast(ubyte) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]; + ubyte* a = A.ptr; + + ubyte[] B = [cast(ubyte)15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 17]; + ubyte* b = B.ptr; + + ubyte* c = (new ubyte[16]).ptr; static if(size_t.sizeof == 4){ asm{