Skip to content

Commit

Permalink
power quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed Sep 25, 2023
1 parent bd5ec08 commit cd70288
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void jit_power_emitter::emit_isa(const std::vector<size_t> &in_vec_idxs, const s
return;
}

if (std::floor(power) == power && power != 0) {
if (std::floor(power) == power && power > 0) {
h->fmov(dst.s, 1.);

auto current_power = static_cast<size_t>(power);
Expand Down

0 comments on commit cd70288

Please sign in to comment.