如何在Visual Studio上启用__int128? [英] How to enable __int128 on Visual Studio?
问题描述
当在Visual Studio中的C ++项目中键入 __ int128
时,编辑器将 __ int128
的颜色更改为蓝色
When I type __int128
in a C++ project in Visual Studio, the editor changes color of __int128
to blue (like keyword).
但是当我编译源代码时,会出现以下错误:
But when I compile the source, the folowing error appears:
error C4235:
nonstandard extension used : '__int128' keyword not supported on this architecture
$ b b
如何在Visual Studio上启用 __ int128
?
推荐答案
MSDN 未将其列为可用,并且此近期< a href =http://connect.microsoft.com/VisualStudio/feedback/details/529171/implement-128-bit-type =nofollow>响应同意,所以正式,不,有没有类型 __ int128
,并且无法启用。
MSDN doesn't list it as being available, and this recent response agrees, so officially, no, there is no type called __int128
and it can't be enabled.
此外,不要信任语法hilighter;它是用户可编辑的,因此可能有假的或未来类型。 (它可能是一个保留字,然而,由于错误,因此你应该避免命名任何类型 __ int128
,这遵循约定,任何前缀双下划线应保留为编译器使用)。
Additionally, never trust the syntax hilighter; it is user editable, and thus likely to either have bogus or 'future' types in it. (it is probably a reserved word however, due to the error, thus you should avoid naming any types __int128
, this follows the convention that anything prefixed with a double underscore should reserved for compiler use).
可以认为 __ int128
可能在x64 / IPF机器上通过寄存器跨越 __ in64
位于32位目标上,但现在只有 128位类型来自SIMD类型( __ m128
及其各种类型的表单)。
One would think the __int128
might be available on x64/IPF machines via register spanning, like __in64
is on 32bit targets, but right now the only 128 bit types stem from SIMD types (__m128
and its various typed forms).
这篇关于如何在Visual Studio上启用__int128?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!