summaryrefslogtreecommitdiffstats
path: root/include/algorithm
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2012-05-03 16:04:02 +0000
committertheraven <theraven@FreeBSD.org>2012-05-03 16:04:02 +0000
commit481a5af2380b60317ef8e4c088b58d640e46f5bc (patch)
tree856ce4e42da23163e4316bca6732710e898f0265 /include/algorithm
parentb72827587c708b2cc7d1ff40b1f6eab96e189dde (diff)
downloadFreeBSD-src-481a5af2380b60317ef8e4c088b58d640e46f5bc.zip
FreeBSD-src-481a5af2380b60317ef8e4c088b58d640e46f5bc.tar.gz
Import a new version of libc++ into the vendor branch.
Diffstat (limited to 'include/algorithm')
-rw-r--r--include/algorithm17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/algorithm b/include/algorithm
index f9c6843..d924a7d 100644
--- a/include/algorithm
+++ b/include/algorithm
@@ -2508,11 +2508,16 @@ private:
_Engine_result_type __mask0_;
_Engine_result_type __mask1_;
+#ifdef _LIBCPP_HAS_NO_CONSTEXPR
static const _Working_result_type _Rp = _Engine::_Max - _Engine::_Min
- + _Working_result_type(1);
- static const size_t __m = __log2<_Working_result_type, _Rp>::value;
- static const size_t _WDt = numeric_limits<_Working_result_type>::digits;
- static const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
+ + _Working_result_type(1);
+#else
+ static _LIBCPP_CONSTEXPR const _Working_result_type _Rp = _Engine::max() - _Engine::min()
+ + _Working_result_type(1);
+#endif
+ static _LIBCPP_CONSTEXPR const size_t __m = __log2<_Working_result_type, _Rp>::value;
+ static _LIBCPP_CONSTEXPR const size_t _WDt = numeric_limits<_Working_result_type>::digits;
+ static _LIBCPP_CONSTEXPR const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
public:
// constructors and seeding functions
@@ -2712,8 +2717,8 @@ public:
result_type operator()();
- static constexpr result_type min() {return _Min;}
- static constexpr result_type max() {return _Max;}
+ static _LIBCPP_CONSTEXPR result_type min() {return _Min;}
+ static _LIBCPP_CONSTEXPR result_type max() {return _Max;}
friend __rs_default __rs_get();
};
OpenPOWER on IntegriCloud