|
| 1 | +# Credits and Attributions |
| 2 | + |
| 3 | +This modernized fork of `pcg-cpp` by **Total-Random** integrates several critical fixes and improvements from the community. Below is a list of changes and their original sources. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Community Fixes |
| 8 | + |
| 9 | +### 1. Optimized `unxorshift` |
| 10 | + |
| 11 | +- **Origin:** [imneme/pcg-cpp PR #82](https://github.com/imneme/pcg-cpp/pull/82) |
| 12 | +- **Author:** [LRFLEW](https://github.com/LRFLEW) |
| 13 | +- **Description:** Implements a more efficient inverse xorshift operation. |
| 14 | + |
| 15 | +### 2. Empty Base Class Optimization (EBCO) for MSVC |
| 16 | + |
| 17 | +- **Origin:** [imneme/pcg-cpp PR #66](https://github.com/imneme/pcg-cpp/pull/66) |
| 18 | +- **Author:** [melak47](https://github.com/melak47) |
| 19 | +- **Description:** Enables `__declspec(empty_bases)` on MSVC to optimize the memory footprint of RNG objects. |
| 20 | + |
| 21 | +### 3. Public `result_type` in `seed_seq_from` |
| 22 | + |
| 23 | +- **Origin:** [imneme/pcg-cpp PR #83](https://github.com/imneme/pcg-cpp/pull/83) |
| 24 | +- **Author:** [timo-eichhorn](https://github.com/timo-eichhorn) |
| 25 | +- **Description:** Makes `result_type` public to comply with the C++ `SeedSequence` concept. |
| 26 | + |
| 27 | +### 4. GCC Warning Fixes |
| 28 | + |
| 29 | +- **Origin:** [SupercriticalSynthesizers/pcg-cpp PR fix-gcc-warnings](https://github.com/SupercriticalSynthesizers/pcg-cpp/tree/fix-gcc-warnings) |
| 30 | +- **Author:** [Timo Alho](https://github.com/tialho) |
| 31 | +- **Description:** Resolves various GCC warnings (clz/ctz truncation) when building with `-Wall`. |
| 32 | + |
| 33 | +### 5. Native Windows ARM64 Support |
| 34 | + |
| 35 | +- **Origin:** [imneme/pcg-cpp PR #99](https://github.com/imneme/pcg-cpp/pull/99) |
| 36 | +- **Author:** [Demonese](https://github.com/Demonese) |
| 37 | +- **Description:** Added native support for ARM64 on MSVC using `__umulh` for efficient 128-bit multiplication. |
| 38 | + |
| 39 | +### 6. Sample and Include Cleanups |
| 40 | + |
| 41 | +- **Author:** [brt-v](https://github.com/brt-v) |
| 42 | +- **Description:** Simplified header includes in sample programs and added `basic_usage.cpp` sample. |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## Total-Random Improvements |
| 47 | + |
| 48 | +### 7. Modern CMake Build System |
| 49 | + |
| 50 | +- **Author:** [JkarVN](https://github.com/JkarVN) |
| 51 | +- **Description:** Comprehensive CMake integration with automated testing via `ctest`. |
| 52 | + |
| 53 | +### 8. MSVC Compatibility Fixes |
| 54 | + |
| 55 | +- **Author:** [JkarVN](https://github.com/JkarVN) |
| 56 | +- **Description:** Resolved several MSVC-specific issues (C2678, C4458, C1090, C4127). |
| 57 | + |
| 58 | +### 9. Modern C++ Best Practices |
| 59 | + |
| 60 | +- **Author:** [Antigravity AI](https://github.com/google-deepmind) |
| 61 | +- **Description:** |
| 62 | + - Implementation of `PCG_NODISCARD` and modernize using `using` syntax. |
| 63 | + |
| 64 | +### 10. C++20 Bit Infrastructure Integration |
| 65 | + |
| 66 | +- **Author:** **Aki Kuri** ([@akikurichan](https://github.com/akikurichan)) |
| 67 | +- **Description:** |
| 68 | + - Integration of C++20 `<bit>` header support for `rotl`, `rotr`, `flog2`, and `trailingzeros`. |
| 69 | + - Introduction of the `PCG_USE_BIT_HEADER` macro toggle for explicit bit operation control. |
| 70 | + - Merged from pcg-next |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +## Special Thanks |
| 75 | + |
| 76 | +- **Melissa O'Neill** for the original PCG library. |
| 77 | +- **Ben Haller** ([bhaller](https://github.com/bhaller)) for early support. |
| 78 | +- **Robert Roessler** ([robertroessler](https://github.com/robertroessler)) for suggesting C++20 bit functions, implemented by **Aki Kuri**. |
0 commit comments