Does gcc support 128-bit int on amd64?
How to define it?
How to use scanf/printf to read/write it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GCC supports built-in
__int128andunsigned __int128types (on 64-bit platforms only), but it looks like formatting support for 128-bit integers is less common in libc.Note:
<stdint.h>defines__int128_tand__uint128_ton versions before gcc4.6. See also Is there a 128 bit integer in gcc? for a table of gcc/clang/ICC versions.How to know if __uint128_t is defined for detecting
__int128