diff --git a/cpu.cpp b/cpu.cpp index 67d4efba..0330451b 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1,4 +1,3 @@ - // cpu.cpp - originally written and placed in the public domain by Wei Dai #include "pch.h" diff --git a/x64dll.asm b/x64dll.asm index 7857f5f1..0adb5c11 100644 --- a/x64dll.asm +++ b/x64dll.asm @@ -1966,11 +1966,9 @@ SHA256_HashMultipleBlocks_SSE2 ENDP ALIGN 8 ExtendedControlRegister PROC -;; First paramter is RCX, and xgetbv expects the CTR in ECX +;; First paramter is RCX, and xgetbv expects the CTRL in ECX ;; http://www.agner.org/optimize/vectorclass/read.php?i=65 -DB 0fh -DB 01h -DB 0d0h +DB 0fh, 01h, 0d0h ;; xcr = (EDX << 32) | EAX and rax, 0ffffffffh shl rdx, 32