Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SadiinsoSnowfall committed Sep 30, 2024
1 parent ffff344 commit b012592
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/eve/module/core/regular/logical_and.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ namespace eve
else if constexpr (std::same_as<U, bool>) return logical_and(a, T{b});
else if constexpr (logical_simd_value<T> && scalar_value<U>) return logical_and(a, T{b});
else if constexpr (scalar_value<T> && logical_simd_value<U>) return logical_and(b, U{a});
else if constexpr (std::same_as<typename T::bits_type, typename U::bits_type>) return bit_cast(a.bits() & b.bits(), as<as_logical_t<T>>{});
else return logical_and(a, convert(b, as<as_logical_t<typename T::value_type>>{}));
else if constexpr (std::same_as<typename T::bits_type, typename U::bits_type>)
{
if constexpr (scalar_value<T> && scalar_value<U>) return T{a && b};
else return bit_cast(a.bits() & b.bits(), as<as_logical_t<T>>{});
}
else return logical_and(a, convert(b, as<as_logical_t<typename T::value_type>>{}));
}
}
}
Expand Down

0 comments on commit b012592

Please sign in to comment.