"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > ## Can You Use __int128 in Visual Studio?

## Can You Use __int128 in Visual Studio?

Posted on 2025-02-25
Browse:991

## Can You Use __int128 in Visual Studio?

Enabling __int128 in Visual Studio: Is It Possible?

Despite appearing as a keyword in Visual Studio's code editor, __int128 fails to compile with an error message indicating it's not supported on the current architecture.

The Official Stance

According to the Microsoft Developer Network (MSDN) documentation, __int128 is not listed as an available data type. Additionally, the error message confirms this by stating that the keyword is not supported.

Syntax Highlighting is Not Trustworthy

Code syntax highlighters, like the one in Visual Studio, can sometimes display syntax that is not yet implemented or is reserved for future use. Therefore, it's not advisable to rely solely on syntax highlighting as an indication of supported features.

128-Bit Data Types

Currently, the only 128-bit data types available in Visual Studio are SIMD types, such as __m128. These types span across multiple registers to create wider data types.

Alternative Solutions

Although __int128 is not directly supported, there are other ways to work with 128-bit integers on compatible platforms:

  • By utilizing compiler extensions or third-party libraries that provide support for __int128.
  • By using SIMD types to perform 128-bit integer operations.
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3