We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_BitInt(128)
__int128
1 parent 7ea2b4b commit 23888a4Copy full SHA for 23888a4
stdlib/public/Concurrency/Clock.cpp
@@ -50,7 +50,7 @@ void swift_get_time(
50
// count by 1,000,000,000 to get nanosecond resolution. By multiplying
51
// first, we maintain high precision. The resulting value is the tick
52
// count in nanoseconds. Use 128-bit math to avoid overflowing.
53
- auto quadPart = static_cast<unsigned __int128>(count.QuadPart);
+ auto quadPart = static_cast<unsigned _BitInt(128)>(count.QuadPart);
54
auto ns = (quadPart * 1'000'000'000) / freq.QuadPart;
55
continuous.tv_sec = ns / 1'000'000'000;
56
continuous.tv_nsec = ns % 1'000'000'000;
0 commit comments