diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-01-24 19:17:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-04-19 21:14:13 +0000 |
| commit | a58f00ea91514a4814b96b25bcb8dc79e946edce (patch) | |
| tree | b15392e159cea54d70d2e224a6ce8e1e415b6d00 /contrib/llvm-project/libcxx/modules/std/numeric.inc | |
| parent | c8734e140f632b76ff5e638afcde7258bd688d2f (diff) | |
Diffstat (limited to 'contrib/llvm-project/libcxx/modules/std/numeric.inc')
| -rw-r--r-- | contrib/llvm-project/libcxx/modules/std/numeric.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/llvm-project/libcxx/modules/std/numeric.inc b/contrib/llvm-project/libcxx/modules/std/numeric.inc index d2b7688d4e5f..3bc7b2316815 100644 --- a/contrib/llvm-project/libcxx/modules/std/numeric.inc +++ b/contrib/llvm-project/libcxx/modules/std/numeric.inc @@ -54,4 +54,14 @@ export namespace std { // [numeric.ops.midpoint], midpoint using std::midpoint; + +#if _LIBCPP_STD_VER >= 26 + // [numeric.sat], saturation arithmetic + using std::add_sat; + using std::div_sat; + using std::mul_sat; + using std::saturate_cast; + using std::sub_sat; +#endif + } // namespace std |
