Landing: a3a46ae2204a
Project / Subsystem
gcc / libstdc++
Date
2026-01-13
Author
Tomasz Kamiński
Commit
a3a46ae2204a5355e649648dcda00c58a39e5075
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- a3a46ae2204a5355e649648dcda00c58a39e5075
- source_type
- github
- headline
- Improve libstdc++ P0952 generate_cannonical tests.
- tldr
- The libstdc++ `generate_canonical` tests are reworked to improve coverage and reflect generator range sizes.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • testing
- • random_number_generation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-13T00:00:00.000Z
The generate_canonical tests in libstdc++ have been reworked to provide better coverage and clarity. Test names now reflect the size of the generator range, and duplicated code is extracted into a run_generator function. The update expands non-power of two ranges to cover all IEC559 floating-point types. The tested values are selected based on the size of the mantissa, accommodating different long double representations, and preventing infinite loops by limiting skips per element.