在 SSE2 CPU 上为 0.3.6 并行计算 4 个哈希

中本聪SN-1858

是在 AMD 上速度为原来的 2 倍,而在 Intel 上只有原来的 1/2 吗?

Is it 2x fast on AMD and 1/2 fast on Intel?

其他参与者原话tcatm原帖 ↗

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

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.

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:4174058e22e5。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

4 hashes parallel on SSE2 CPUs for 0.3.6

Bitcointalk · 原始链接 ↗ 记录编号 SN-1858

阅读字号

选择适合你的字号,之后阅读会继续使用。