From 376a883dea5caa28ae66267bd957699ad496b5d5 Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Mon, 18 Sep 2023 04:43:13 -0400 Subject: cleanup comments Signed-off-by: sigsegv7 --- src/sse_accel.S | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/sse_accel.S') diff --git a/src/sse_accel.S b/src/sse_accel.S index dab5dce..98a5ea0 100644 --- a/src/sse_accel.S +++ b/src/sse_accel.S @@ -34,15 +34,10 @@ * accel_invert128(uint64_t addr) */ accel_invert128: - movq %rdi, %rax - movdqu (%rax), %xmm0 + movq %rdi, %rax // Store first argument in %rax + movdqu (%rax), %xmm0 // Read 128 bits from ptr in %rax into %xmm0 - /* - * Set %xmm1 to all 1s and emulate NOT for %xmm0. - * Result of inversion will be stored in %xmm1. - */ - pcmpeqb %xmm1, %xmm1 - pxor %xmm0, %xmm1 - - movdqu %xmm1, (%rax) + pcmpeqb %xmm1, %xmm1 // Set %xmm1 to all 1s + pxor %xmm0, %xmm1 // NOT %xmm0; result stored in %xmm1 + movdqu %xmm1, (%rax) // Writeback the result retq -- cgit v1.2.3