Skip to content

Commit

Permalink
Revert "update"
Browse files Browse the repository at this point in the history
This reverts commit 0a68bc5.
  • Loading branch information
MacroModel committed Nov 27, 2024
1 parent 0a68bc5 commit b78c5e9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion include/fast_io_core_impl/integers/sto/sto_contiguous.h
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
if (!__builtin_is_constant_evaluated())
#endif
{
if constexpr (!::fast_io::details::is_ebcdic<char_type> && ::std::endian::little == ::std::endian::native)
if constexpr (!::fast_io::details::is_ebcdic<char_type>)
{
// Decimal:
// https://github.com/fastfloat/fast_float
Expand All @@ -558,6 +558,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
::std::uint_least64_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least64_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least64_t pow_base_sizeof_u64{::fast_io::details::compile_time_pow<::std::uint_least64_t>(static_cast<::std::uint_least64_t>(base_char_type), sizeof(::std::uint_least64_t))};
constexpr ::std::uint_least64_t first_bound{0x4646464646464646 + 0x0101010101010101 * (10 - base_char_type)};

Expand Down Expand Up @@ -588,6 +590,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
{
::std::uint_least32_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least32_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least32_t pow_base_sizeof_u32{::fast_io::details::compile_time_pow<::std::uint_least32_t>(static_cast<::std::uint_least32_t>(base_char_type), sizeof(::std::uint_least32_t))};
constexpr ::std::uint_least32_t first_bound{0x46464646 + 0x01010101 * (10 - base_char_type)};
Expand Down Expand Up @@ -616,6 +620,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
{
::std::uint_least64_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least64_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least64_t pow_base_sizeof_u64{
::fast_io::details::compile_time_pow<::std::uint_least64_t>(static_cast<::std::uint_least64_t>(base_char_type), u64_size_of_c16)};
Expand Down Expand Up @@ -648,6 +654,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
{
::std::uint_least64_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least64_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least64_t pow_base_sizeof_u64{::fast_io::details::compile_time_pow<::std::uint_least64_t>(static_cast<::std::uint_least64_t>(base_char_type), sizeof(::std::uint_least64_t))};
constexpr ::std::uint_least64_t first_bound1{0x3939393939393939 + 0x0101010101010101 * (16 - base_char_type)};
Expand Down Expand Up @@ -690,6 +698,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
{
::std::uint_least32_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least32_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least32_t pow_base_sizeof_u32{::fast_io::details::compile_time_pow<::std::uint_least32_t>(static_cast<::std::uint_least32_t>(base_char_type), sizeof(::std::uint_least32_t))};
constexpr ::std::uint_least32_t first_bound1{0x39393939 + 0x01010101 * (16 - base_char_type)};
Expand Down Expand Up @@ -732,6 +742,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
{
::std::uint_least32_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least32_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least32_t pow_base_sizeof_u32{::fast_io::details::compile_time_pow<::std::uint_least32_t>(static_cast<::std::uint_least32_t>(base_char_type), sizeof(::std::uint_least32_t))};
constexpr ::std::uint_least32_t first_bound{0x46464646 + 0x01010101 * (10 - base_char_type)};
Expand Down Expand Up @@ -767,6 +779,8 @@ scan_int_contiguous_none_simd_space_part_define_impl(char_type const *first, cha
{
::std::uint_least32_t val;
::fast_io::freestanding::my_memcpy(__builtin_addressof(val), first, sizeof(::std::uint_least32_t));

val = ::fast_io::little_endian(val);

constexpr ::std::uint_least32_t pow_base_sizeof_u32{::fast_io::details::compile_time_pow<::std::uint_least32_t>(static_cast<::std::uint_least32_t>(base_char_type), sizeof(::std::uint_least32_t))};
constexpr ::std::uint_least32_t first_bound1{0x39393939 + 0x01010101 * (16 - base_char_type)};
Expand Down

0 comments on commit b78c5e9

Please sign in to comment.