escargot/third_party/int128
Seonghyun Kim 2156cfa5b8 Fix compiler issue with int128(gcc-10 upper)
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2026-04-08 10:00:03 +09:00
..
int128.h Fix compiler issue with int128(gcc-10 upper) 2026-04-08 10:00:03 +09:00
LICENSE Introduce Int128 library 2025-09-04 13:22:13 +09:00
README.md Introduce Int128 library 2025-09-04 13:22:13 +09:00

https://github.com/zhanhb/int128/

int128

int128 with divide/stream support, require C++ 11

uint128_t a = 2'000'000'000'000'000'000'000_U128; // single quotes requires C++ 14
int128_t b = 1'000'000'000'000'000'000'000_L128;
cout << setw(40) << setfill('0') << hex << uppercase << a / b << endl;
setlocale(LC_ALL, "zh_CN.UTF-8");
cout.imbue(locale());
cout << a / b << endl;