Home >Backend Development >C++ >## Can I Use __int128 in Visual Studio?

## Can I Use __int128 in Visual Studio?

Barbara Streisand
Barbara StreisandOriginal
2024-10-27 03:20:03886browse

## 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn