📄 loop1-bug.cpp
字号:
// In KAI C++ 3.2, restrict causes problems for copy propagation.
// Temporary fix: disable restrict
#define BZ_DISABLE_RESTRICT
#include <blitz/vector.h>
BZ_USING_NAMESPACE(blitz)
template<class T> void sink(T&) { }
void foo(int N)
{
Vector<double> x(N);
Vector<double> y(N);
x=sqrt(y);
sink(x);
sink(y);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -