Skip to content

Commit

Permalink
Another minor bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Sep 15, 2024
1 parent 7675053 commit 907ba11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ llvm::Value *taylor_diff_pow_impl(llvm_state &s, llvm::Type *fp_t, const pow_imp
auto *ordvec = llvm_codegen(s, vec_t, number(static_cast<double>(order)));
auto *onevec = llvm_codegen(s, vec_t, number(1.));

auto tmp1 = llvm_fmul(s, ordvec, expo);
auto tmp2 = llvm_fmul(s, jvec, llvm_fadd(s, expo, onevec));
auto *tmp1 = llvm_fmul(s, ordvec, expo);
auto *tmp2 = llvm_fmul(s, jvec, llvm_fadd(s, expo, onevec));

return llvm_fsub(s, tmp1, tmp2);
}
Expand Down

0 comments on commit 907ba11

Please sign in to comment.