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 Apr 10, 2023
1 parent 3d3d068 commit 9e83e6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/taichi/lang/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ def bit_not(a):
def popcnt(a):
def _popcnt(a):
return bin(a).count("1")

return _unary_operation(_ti_core.expr_popcnt, _popcnt, a)


Expand Down Expand Up @@ -1403,7 +1404,7 @@ def min(*args): # pylint: disable=W0622
__all__ = [
"acos", "asin", "atan2", "atomic_and", "atomic_or", "atomic_xor",
"atomic_max", "atomic_sub", "atomic_min", "atomic_add", "bit_cast",
"bit_shr", "cast", "ceil", "cos", "exp", "floor", "frexp", "log",
"random", "raw_mod", "raw_div", "round", "rsqrt", "sin", "sqrt", "tan",
"tanh", "max", "min", "select", "abs", "pow"
"bit_shr", "cast", "ceil", "cos", "exp", "floor", "frexp", "log", "random",
"raw_mod", "raw_div", "round", "rsqrt", "sin", "sqrt", "tan", "tanh",
"max", "min", "select", "abs", "pow"
]

0 comments on commit 9e83e6a

Please sign in to comment.