From c57a701d3ab00b20f86fb2f1f6fb59e8e7fa52bb Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Sun, 14 Mar 2010 19:09:47 +0100 Subject: [PATCH] asmb: 0 geht auch anders... ;) --- asmb/asmb.s | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/asmb/asmb.s b/asmb/asmb.s index 101ed41..027a999 100644 --- a/asmb/asmb.s +++ b/asmb/asmb.s @@ -13,6 +13,10 @@ constc0: .rept 16 .byte 0xc0 .endr +const00: + .rept 16 + .byte 0x00 + .endr .text .globl asmb @@ -21,9 +25,6 @@ asmb: .LFB2: xor %rdx, %rdx - //soll einfach null sein - pxor %xmm14, %xmm14 - .nextround: //speicheradresse des pointers zeigt auf 16*8 feld = 128bit movdqu (%rdi, %rdx, 8), %xmm11 @@ -48,7 +49,7 @@ asmb: movdqu %xmm11, (%rdi, %rdx, 8) //entspricht ein byte dem nullbyte dann steht an jener stelle 0xff sonst 0x00 - pcmpeqb %xmm14, %xmm11 + pcmpeqb const00, %xmm11 //hol die MSBs aller bytes raus pmovmskb %xmm11, %ecx add $2, %rdx -- 2.25.1