找不到标识符:__ mul128

时间:2011-04-28 17:00:42

标签: c++

我收到错误(VS2010 sp1):
错误25错误C3861:'_ mul128':未找到标识符
代码如下所示:

#include "stdafx.h"
#include <intrin.h>

int _tmain(int argc, _TCHAR* argv[])
{
    __int64* high = nullptr;
    _mul128(2LL,4LL,high);
    return 0;
}  

这个fnc只能在64位架构上调用吗?

2 个答案:

答案 0 :(得分:3)

在包含后添加#pragma intrinsic(_mul128)

答案 1 :(得分:2)

_mul128仅在64位体系结构上受支持。您可以在MSDN page

上看到这一点
Architecture: IPF, x64
相关问题