fixed spelling errors in recent comments

This commit is contained in:
Cazadorro 2026-03-28 23:25:10 -05:00
parent dedbeeebb0
commit 38d164d452

View File

@ -3158,7 +3158,7 @@ constexpr auto fractional_part_rounding_thresholds(int index) -> uint32_t {
// in constexpr functions and non-static ones are poorly optimized.
// while in C++23 we can use static constexpr, and in c++17 we can use out of
// function defintion of inline constexpr, in C++11 we have to rely on string
// function definition of inline constexpr, in C++11 we have to rely on string
// literals in order to avoid duplicating constant definitions across
// translation units. We take the following uint32 array definition:
// {0x9999999au, 0x828f5c29u, 0x80418938u, 0x80068db9,
@ -3166,7 +3166,7 @@ constexpr auto fractional_part_rounding_thresholds(int index) -> uint32_t {
// and convert that into a series of char hexidecimal literals in a char array:
// "\x99\x99\x99\x9a \x82\x8f\x5c\x29 \x80\x41\x89\x38 \x80\x06\x8d\xb9
// \x80\x00\xa7\xc6 \x80\x00\x10\xc7 \x80\x00\x01\xae \x80\x00\x00\x2b"
// Then we split this up into four seperate arrays of bytes, so the bytes can
// Then we split this up into four separate arrays of bytes, so the bytes can
// be properly recombined into endian-correct uint32_t.
@ -3176,7 +3176,7 @@ constexpr auto fractional_part_rounding_thresholds(int index) -> uint32_t {
uint32_t byte_0 = static_cast<uint8_t>("\x9a\x29\x38\xb9\xc6\xc7\xae\x2b"[index]);
//recombine as uint32, this should eliminate endian issues, as now we are shifting
//btyes as uint32 which should match platform endian.
//bytes as uint32 which should match platform endian.
return byte_3 << 24u | byte_2 << 16u | byte_1 << 8u | byte_0;
}