Home >Backend Development >C++ >## Can I Use __int128 in Visual Studio?
Enabling __int128 in Visual Studio
When working with C in Visual Studio, you may encounter an error message indicating that the __int128 keyword is not supported on your architecture. This error arises due to the absence of official support for __int128 in Visual Studio.
Despite its appearance as a keyword, __int128 is not a recognized type in Visual Studio. The syntax hilighter, which assigns color to keywords, may sometimes introduce non-existent types, making it unreliable as a source of truth.
Additionally, it's important to avoid using __int128 as a type name, as it is a reserved word. This is evident from the error message, which suggests that double-underscored names are typically reserved for compiler use.
While __int128 may seem like a viable option for representing 128-bit integers, it is not currently supported on x64 or IPF machines. The only available 128-bit types in Visual Studio are __m128 and its related typed forms, which originate from SIMD instructions.
The above is the detailed content of ## Can I Use __int128 in Visual Studio?. For more information, please follow other related articles on the PHP Chinese website!