Skip to content

Commit

Permalink
add likely to happy path
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroModel committed Dec 17, 2024
1 parent f0dd6af commit 9006177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fast_io_core_impl/integers/sto/sto_contiguous.h
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ inline constexpr parse_result<char_type const *> scan_context_define_parse_impl(
if constexpr (my_signed_integral<T>)
{
auto phase_ret = sc_int_ctx_sign_phase<true, false>(st, first, last);
if (phase_ret.code != ongoing_parse_code)
if (phase_ret.code != ongoing_parse_code) [[unlikely]]
{
return phase_ret;
}
Expand All @@ -1581,7 +1581,7 @@ inline constexpr parse_result<char_type const *> scan_context_define_parse_impl(
{
st.integer_phase = scan_integral_context_phase::prefix;
auto phase_ret = sc_int_ctx_prefix_phase<base>(st.size, first, last);
if (phase_ret.code != ongoing_parse_code)
if (phase_ret.code != ongoing_parse_code) [[unlikely]]
{
return phase_ret;
}
Expand Down

0 comments on commit 9006177

Please sign in to comment.