[PATCH] longlong.h: loongarch64: replace unsigned __int128__ with __uint128_t

Marc Glisse marc.glisse at inria.fr
Sat Feb 1 12:12:39 CET 2025


On Sat, 1 Feb 2025, Yao Zi wrote:

> On Fri, Jan 31, 2025 at 10:42:09PM +0100, Marc Glisse wrote:
>> Hi,
>>
>> would it work for you if I replaced __int128__ with __int128, i.e. the name
>> that gcc documents at
>> https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html ? I think clang
>> handles that fine.
>
> Oops, I found out why. GCC 14 complains about usage of __int128 with our
> default build configuration while Clang doesn't.
>
>    ../longlong.h:1165:22: warning: ISO C does not support '__int128' types [-Wpedantic]

But it doesn't complain about __uint128_t? That sounds strange...

There is also the possibility of adding __extension__ in front, that's 
what's done in the sanitizers (in llvm) and libstdc++ (in gcc).

-- 
Marc Glisse


More information about the gmp-devel mailing list