C 128ビット符号なし整数リテラルと表示
C言語で128ビット符号なし整数(__uint128_t)のリテラルを記述する方法と、それを標準出力に表示する方法について解説。GCCやClangの拡張機能である__uint128_t型では、通常のprintfでは直接扱えないため、専用の処理が必要となる。
C言語で128ビット符号なし整数(__uint128_t)のリテラルを記述する方法と、それを標準出力に表示する方法について解説。GCCやClangの拡張機能である__uint128_t型では、通常のprintfでは直接扱えないため、専用の処理が必要となる。
The blog post discusses how to initialize and print 128-bit integers in C, noting that while a 128-bit value can be initialized using a 64-bit value for simplicity, the language supports 128-bit integer types (such as __uint128_t in GCC) and also covers printing them using compiler-specific format specifiers or custom functions.