1 // Copyright (c) Microsoft Corporation.
2 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 #include <system_error>
13 inline constexpr float float_inf
= numeric_limits
<float>::infinity();
14 inline constexpr float float_nan
= numeric_limits
<float>::quiet_NaN();
15 inline constexpr float float_nan_payload
= __builtin_nanf("1729");
17 inline constexpr double double_inf
= numeric_limits
<double>::infinity();
18 inline constexpr double double_nan
= numeric_limits
<double>::quiet_NaN();
19 inline constexpr double double_nan_payload
= __builtin_nan("1729");
21 struct FloatFromCharsTestCase
{
24 std::size_t correct_idx
;
29 struct FloatToCharsTestCase
{
35 struct FloatPrecisionToCharsTestCase
{
42 struct DoubleFromCharsTestCase
{
45 std::size_t correct_idx
;
50 struct DoubleToCharsTestCase
{
56 struct DoublePrecisionToCharsTestCase
{