[all-commits] [llvm/llvm-project] 9f4022: [libc++] Avoid <climits> dependency in <thread>
Joerg Sonnenberger via All-commits
all-commits at lists.llvm.org
Wed Mar 31 06:29:45 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f4022ffeb20eff91c7461828592dc812ee5a28e
https://github.com/llvm/llvm-project/commit/9f4022ffeb20eff91c7461828592dc812ee5a28e
Author: Joerg Sonnenberger <joerg at bec.de>
Date: 2021-03-31 (Wed, 31 Mar 2021)
Changed paths:
M libcxx/include/thread
Log Message:
-----------
[libc++] Avoid <climits> dependency in <thread>
The standard guarantees sleep durations of 2^63-1 nanoseconds to work.
Instead of depending on INT64_MAX or ULONGLONG_MAX to exist via the
header pollution, fold the constant directly. That has the additional
positive side effect that it avoids long double arithmetic bugs in GCC.
Differential Revision: https://reviews.llvm.org/D99516
More information about the All-commits
mailing list