libstdc++: Expand serialization test for piecewise distributions.
New serialization tests added for piecewise constant and linear distributions, but limited to x86_64 architectures.
New test cases have been added for serialization of piecewise_constant_distribution and piecewise_linear_distribution. Due to variability in results, these tests are currently limited to x86_64 architectures. The float/double tests are disabled for -m32 due to unstable results. This expansion improves testing coverage for these distributions.
In Details
This commit adds new test files (serialize2.cc) to the testsuite/26_numerics/random/piecewise_*_distribution/operators/ directories in libstdc++. Serialization tests verify that objects can be converted to a byte stream and back without data loss. The tests are limited to x86_64 due to result variability and disabled for -m32. This change focuses on the robustness and correctness of piecewise distribution serialization.
For Context
Serialization is the process of converting an object (a piece of data in a program) into a format that can be easily stored or transmitted, such as a sequence of bytes. This allows the object to be saved to a file or sent over a network, and then later reconstructed. This commit adds new tests to ensure that piecewise_constant_distribution and piecewise_linear_distribution objects in the C++ standard library can be correctly serialized and deserialized. Due to some inconsistencies, these tests are currently only run on x86_64-based systems.