SN-3660 已核对来源,附原文与上下文。
你应该试试把 tcatm 的 4 路 SSE2 SHA 放进 sha256.cpp。它作为 C 文件编译没问题,只需把 sha256.cpp 改名为 sha256.c。我在 Windows 上简单测试时让它跑通了,但与 Bitcoin 链接时不行。作为 C 程序的一部分而不是 C++,成功的机会恐更大。
You should try it with tcatm's 4-way SSE2 SHA in sha256.cpp. It compiles fine as a C file, just rename sha256.cpp to sha256.c. I was able to get it to work in simple tests on Windows, but not when linked in with Bitcoin. It may have a better chance of working as part of a C program instead of C++.
目前它只在 Linux 构建中启用,因此如果你让它跑通了,能让 Windows 用户也用上。在 AMD CPU 上约莫提速 100%。
Currently it's only enabled in the Linux build, so if you get it to work you could make it available to Windows users. It's about 100% speedup on AMD CPUs.