|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
结构体 | |
| struct | pcg64_128_state |
| Copyright (C) 2026 HJimmyK (Jericho Knox) 更多... | |
| struct | pcg64_le_seq_t |
| struct | xoshiro256pp_state |
宏定义 | |
| #define | LMMP_INLINE static inline |
| #define | PCG128_DEFAULT_MULTIPLIER_HI 0x2360ED051FC65DA4ULL |
| #define | PCG128_DEFAULT_MULTIPLIER_LO 0x4385DF649FCCF645ULL |
| #define | PCG64_LE_INCREMENT 1442695040888963407ULL |
| #define | PCG64_LE_MULTIPLIER 6364136223846793005ULL |
函数 | |
| static mp_limb_t | lmmp_pcg64_128_random (pcg64_128_state *rng) |
| static void | lmmp_pcg64_128_srandom (pcg64_128_state *rng, mp_limb_t seed) |
| mp_limb_t | lmmp_randlimb_ (void) |
| 依据全局状态获取单个随机limb(0 - B 均匀分布) | |
| static mp_limb_t | lmmp_seed_generator (mp_limb_t seed) |
| 种子生成器 | |
| static mp_limb_t | lmmp_xoshiro256pp_random (xoshiro256pp_state *rng) |
| static void | lmmp_xoshiro256pp_srandom (xoshiro256pp_state *rng, mp_limb_t seed) |
| static mp_limb_t | mix64 (mp_limb_t h) |
| static void | pcg64_128_action (mp_limb_t state[2], const mp_limb_t inc[2]) |
| static mp_limb_t | pcg64_le_action (mp_limb_t *restrict state) |
| static void | pcg64_le_seq_init (pcg64_le_seq_t *rng, mp_size_t i, mp_limb_t seed) |
| static void | pcg64_le_seq_next (mp_ptr restrict dst, mp_size_t n, pcg64_le_seq_t *rng) |
| static mp_limb_t | rotl (const mp_limb_t x, int k) |
| struct pcg64_128_state |
Copyright (C) 2026 HJimmyK (Jericho Knox)
This file is part of LMMP.
LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see https://www.gnu.org/licenses/.
SPDX-License-Identifier: LGPL-3.0-or-later
在文件 rand_state.h 第 29 行定义.
| 成员变量 | ||
|---|---|---|
| mp_limb_t | inc[2] | |
| mp_limb_t | state[2] | |
| struct pcg64_le_seq_t |
| struct xoshiro256pp_state |
| #define LMMP_INLINE static inline |
在文件 rand_state.h 第 41 行定义.
| #define PCG128_DEFAULT_MULTIPLIER_HI 0x2360ED051FC65DA4ULL |
在文件 rand_state.h 第 38 行定义.
被这些函数引用 pcg64_128_action().
| #define PCG128_DEFAULT_MULTIPLIER_LO 0x4385DF649FCCF645ULL |
在文件 rand_state.h 第 39 行定义.
被这些函数引用 pcg64_128_action().
| #define PCG64_LE_INCREMENT 1442695040888963407ULL |
在文件 rand_state.h 第 133 行定义.
被这些函数引用 pcg64_le_action() , 以及 pcg64_le_seq_next().
| #define PCG64_LE_MULTIPLIER 6364136223846793005ULL |
在文件 rand_state.h 第 132 行定义.
被这些函数引用 pcg64_le_action() , 以及 pcg64_le_seq_next().
|
inlinestatic |
在文件 rand_state.h 第 93 行定义.
引用了 pcg64_128_state::inc, LMMP_INLINE, lmmp_param_assert, lmmp_pcg64_128_random(), pcg64_128_action() , 以及 pcg64_128_state::state.
被这些函数引用 lmmp_pcg64_128_random() , 以及 lmmp_seed_random_().
|
inlinestatic |
在文件 rand_state.h 第 82 行定义.
引用了 pcg64_128_state::inc, LMMP_INLINE, lmmp_param_assert, lmmp_pcg64_128_srandom(), lmmp_seed_generator(), mix64() , 以及 pcg64_128_state::state.
被这些函数引用 lmmp_pcg64_128_srandom() , 以及 lmmp_seed_random_().
| mp_limb_t lmmp_randlimb_ | ( | void | ) |
依据全局状态获取单个随机limb(0 - B 均匀分布)
引用了 lmmp_global_rng, lmmp_randlimb_(), lmmp_seed_generator(), mix64() , 以及 lmmp_global_rng_t::state.
被这些函数引用 ipn_notrial_i_() , 以及 lmmp_randlimb_().
种子生成器
| seed | 低熵种子 |
在文件 rand_state.h 第 53 行定义.
引用了 LMMP_INLINE , 以及 lmmp_seed_generator().
被这些函数引用 lmmp_global_rng_init_(), lmmp_pcg64_128_srandom(), lmmp_randlimb_(), lmmp_random_(), lmmp_seed_generator(), lmmp_strong_rng_extern_(), lmmp_strong_rng_init_() , 以及 pcg64_le_seq_next().
|
inlinestatic |
在文件 rand_state.h 第 105 行定义.
引用了 LMMP_INLINE, lmmp_param_assert, lmmp_xoshiro256pp_random(), rotl(), xoshiro256pp_state::s , 以及 t.
被这些函数引用 lmmp_seed_random_() , 以及 lmmp_xoshiro256pp_random().
|
inlinestatic |
在文件 rand_state.h 第 120 行定义.
引用了 C, LMMP_INLINE, lmmp_param_assert, lmmp_xoshiro256pp_srandom(), mix64() , 以及 xoshiro256pp_state::s.
被这些函数引用 lmmp_seed_random_() , 以及 lmmp_xoshiro256pp_srandom().
在文件 rand_state.h 第 60 行定义.
引用了 LMMP_INLINE , 以及 mix64().
被这些函数引用 lmmp_pcg64_128_srandom(), lmmp_randlimb_(), lmmp_random_(), lmmp_strong_rng_extern_(), lmmp_strong_rng_init_(), lmmp_xoshiro256pp_srandom(), mix64() , 以及 pcg64_le_seq_init().
在文件 rand_state.h 第 69 行定义.
引用了 _umul64to128_(), LMMP_INLINE, PCG128_DEFAULT_MULTIPLIER_HI, PCG128_DEFAULT_MULTIPLIER_LO, pcg64_128_action() , 以及 tmp.
被这些函数引用 lmmp_pcg64_128_random() , 以及 pcg64_128_action().
在文件 rand_state.h 第 153 行定义.
引用了 LMMP_INLINE, pcg64_le_action(), PCG64_LE_INCREMENT, PCG64_LE_MULTIPLIER , 以及 restrict.
被这些函数引用 pcg64_le_action() , 以及 pcg64_le_seq_next().
|
inlinestatic |
在文件 rand_state.h 第 140 行定义.
引用了 pcg64_le_seq_t::k, LMMP_INLINE, lmmp_param_assert, mix64(), pcg64_le_seq_init(), s , 以及 pcg64_le_seq_t::state.
被这些函数引用 lmmp_strong_rng_extern_(), lmmp_strong_rng_init_() , 以及 pcg64_le_seq_init().
|
inlinestatic |
在文件 rand_state.h 第 167 行定义.
引用了 k, pcg64_le_seq_t::k, LMMP_INLINE, lmmp_param_assert, lmmp_seed_generator(), n, pcg64_le_action(), PCG64_LE_INCREMENT, PCG64_LE_MULTIPLIER, pcg64_le_seq_next(), restrict , 以及 pcg64_le_seq_t::state.
被这些函数引用 lmmp_strong_random_() , 以及 pcg64_le_seq_next().
在文件 rand_state.h 第 43 行定义.
引用了 k, LMMP_INLINE , 以及 rotl().
被这些函数引用 lmmp_xoshiro256pp_random() , 以及 rotl().