Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 24, 2022
1 parent e944aad commit c9f1998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/transforms/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Stmt *generate_mod(VecStatement *stmts, Stmt *x, int y) {

Stmt *generate_div(VecStatement *stmts, Stmt *x, int y) {
if (bit::is_power_of_two(y)) {
auto const_stmt =
stmts->push_back<ConstStmt>(TypedConstant(PrimitiveType::i32, bit::log2int(y)));
auto const_stmt = stmts->push_back<ConstStmt>(
TypedConstant(PrimitiveType::i32, bit::log2int(y)));
return stmts->push_back<BinaryOpStmt>(BinaryOpType::bit_shr, x, const_stmt);
}
auto const_stmt = stmts->push_back<ConstStmt>(TypedConstant(y));
Expand Down

0 comments on commit c9f1998

Please sign in to comment.