aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-11 15:09:26 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-11 15:09:26 +0300
commitf788a054cb1ff227c2958ac72f600a6617020dde (patch)
treeac431d866e93aa6e190359c7a8716dbce1a831ad /contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h
parent4e88d9ba201a15fa209d034b3a99bf1a0567e912 (diff)
downloadydb-f788a054cb1ff227c2958ac72f600a6617020dde.tar.gz
intermediate changes
ref:e5e2fe1e6ffa080d851e8418ce8b74d73ea51def
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h')
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h b/contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h
new file mode 100644
index 0000000000..0b415928df
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxx/include/__random/ranlux.h
@@ -0,0 +1,31 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___RANDOM_RANLUX_H
+#define _LIBCPP___RANDOM_RANLUX_H
+
+#include <__config>
+#include <__random/discard_block_engine.h>
+#include <__random/subtract_with_carry_engine.h>
+#include <cstdint>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+typedef subtract_with_carry_engine<uint_fast32_t, 24, 10, 24> ranlux24_base;
+typedef subtract_with_carry_engine<uint_fast64_t, 48, 5, 12> ranlux48_base;
+
+typedef discard_block_engine<ranlux24_base, 223, 23> ranlux24;
+typedef discard_block_engine<ranlux48_base, 389, 11> ranlux48;
+
+_LIBCPP_END_NAMESPACE_STD
+
+#endif // _LIBCPP___RANDOM_RANLUX_H