Skip to content

回复:在 SSE2 CPU 上为 0.3.6 并行计算 4 个哈希 ​

原始发布页

打开来源页面
查看 1 个交叉存档

在 AMD 上是 2 倍快,而在 Intel 上是 1/2 倍快吗?

引用 tcatm 于 2010 年 7 月 31 日 10:12:38 AM 的发言

顺便问一下,既然 __attribute__ ((aligned (16))) 会让编译器在编译时对齐,你为什么还要使用这个 alignup<16> 函数?

试过了,但它对栈上的内容不起作用。我做了一些测试。

它甚至不会引发错误,只是没有进行对齐。

英文原文 ​

展开英文原文

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

Quote from: tcatm on July 31, 2010, 10:12:38 AM

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.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。