Skip to content

Commit

Permalink
suppressing [[likely]]
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlap committed Nov 17, 2023
1 parent 62ab430 commit 5ebb9b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/kyosu/types/impl/compounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ namespace kyosu
{
auto r1 = (self * if_else(is_infinite(other), eve::zero, conj(other)/sqr_abs(other)));
auto eqzother = is_eqz(other);
if(eve::none(eqzother)) [[likely]]
if(eve::none(eqzother))
{
self = r1;
}
else [[unlikely]]
else
{
self = if_else(is_eqz(other), self/real(other), r1);
}
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/types/impl/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ namespace kyosu::_
, complex(ii1, rr1)
);
res = if_else(is_pure(z), eve::sqrt_2(eve::as(r))*complex( eve::half(eve::as(r)), eve::half(eve::as(r)))*eve::sqrt(iz), res);
if (eve::any(is_not_finite(z))) [[unlikely]]
if (eve::any(is_not_finite(z)))
{
res = kyosu::if_else(rz == eve::minf(eve::as(rz))
, kyosu::if_else( eve::is_nan(iz), complex(iz, eve::minf(eve::as(rz)))
Expand Down

0 comments on commit 5ebb9b4

Please sign in to comment.