Avril
800e0ad13b
<range.h> util::range: Added out-of-place clamp `T clamped(const)` and `T clamped(&&)`.
...
Fortune for cpprng's current commit: Future blessing − 末吉
3 years ago
Avril
a9bc96294a
Working util::range type and bounded range-scale API!
...
Fortune for cpprng's current commit: Future blessing − 末吉
3 years ago
Avril
5d69550fff
Fucking hell... First "attempt" at range API... it doesn"t look good :/
...
Fortune for cpprng's current commit: Future small blessing − 末小吉
3 years ago
Avril
7eaba3c1b3
Added `aligned_ptr<T>::container_address([const] Self&) -> [const] Self*` to offset the overloaded unary & and avoid need of `std::addressof`.
...
Fortune for cpprng's current commit: Future curse − 末凶
3 years ago
Avril
fe55da9a5a
Improved ergonomics for aligned_ptr pointer handling
...
(This is mostly a test to see if overloading `operator&()` is ever something worth doing. Since this is a rather lax smart-pointer container and I can"t see any reason we"d need to pass around `aligned_ptr<T>*` instances, it might be worth doing.)
Fortune for cpprng's current commit: Blessing − 吉
3 years ago
Avril
ed966944b8
Added likeliness annotations to some nullptr checks
...
Fortune for cpprng's current commit: Great blessing − 大吉
3 years ago
Avril
ef25f978ff
Added attrs to internal-exported C API header
...
Remove -fanalyzer: Too many false positives
Fortune for cpprng's current commit: Middle blessing − 中吉
3 years ago
Avril
595fd74a97
_jr_st_resolv() now takes pointer to the xsub union instead of the whole state.
...
Fortune for cpprng's current commit: Future blessing − 末吉
3 years ago
Avril
b35c0f705d
Added internal visibility modifier to internal C APIs
...
Fortune for cpprng's current commit: Future small blessing − 末小吉
3 years ago
Avril
8e20b86365
crand::_sample() uniformly distributes between 0..1
...
Fortune for cpprng's current commit: Blessing − 吉
3 years ago
Avril
c21c7e77e9
crand::next_u64() now correctly returns uniformly between 0..=RANGE_MAX
...
Fortune for cpprng's current commit: Small blessing − 小吉
3 years ago
Avril
b59c0671d2
Added ranges to Random base.
...
Added crand::RANGE_MIN/MAX, overriden required base ranges to point to them.
crand::next_u64() returns within this range but discards the negative result
Fortune for cpprng's current commit: Small blessing − 小吉
3 years ago
Avril
977e32c711
crand: started integer rng overrides
...
Fortune for cpprng's current commit: Half blessing − 半吉
3 years ago
Avril
c8622410d8
crand: raw sample ok
...
Fortune for cpprng's current commit: Middle blessing − 中吉
3 years ago
Avril
ea4538231e
Fix incorrect uint48_t sizing.
...
Resolve xsubi via ifunc if bitfield is placed in unexpected location within union.
Fortune for cpprng's current commit: Middle blessing − 中吉
3 years ago
Avril
2b24ab0408
All that aligned_ptr<bullshit> work for nothing huh...
...
Fortune for cpprng's current commit: Half blessing − 半吉
3 years ago
Avril
3b1628d396
Added mem::aligned_ptr<T> wrapper
...
Fortune for cpprng's current commit: Future blessing − 末吉
3 years ago
Avril
5ac7fc5e11
start: c Random subclass (jrand48_r())
...
Fortune for cpprng's current commit: Curse − 凶
3 years ago
Avril
7bd7964d98
Random::iterator<T> skel
...
Fortune for cpprng's current commit: Half blessing − 半吉
3 years ago
Avril
ff8c729ef7
Initial commit
...
Added `Random` interface.
Fortune for cpprng's current commit: Blessing − 吉
3 years ago