Bitcointalk · 4 hashes parallel on SSE2 CPUs for 0.3.6

中本聪,2010 年 8 月 2 日

SN-1858 已核对来源,附原文与上下文。

阅读语言
中文译文

是在 AMD 上快 2 倍、在 Intel 上只有 1/2 速度吗?

顺便问下,__attribute__ ((aligned (16))) 就能让编译器在编译期对齐,你为什么还要用 alignup<16> 这个函数?

试过,但它对栈上的东西不管用。我跑过一些测试。

它连错误都不报,就是对齐不了。

ORIGINAL · 英文原文
Is it 2x fast on AMD and 1/2 fast on Intel?

Btw. Why are you using this alignup<16> function when __attribute__ ((aligned (16))) will tell the compiler to align at compiletime?
Tried that, but it doesn't work for things on the stack.  I ran some tests.

It doesn't even cause an error, it just doesn't align it.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1858