Skip to content

Commit

Permalink
Fix popc parentheses warning (#3820)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbusato authored Feb 15, 2025
1 parent 3daa036 commit 8d299ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__bit/popc.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ _LIBCUDACXX_HIDE_FROM_ABI constexpr int __constexpr_popc_32bit(uint32_t __x) noe
#else
__x = __x - ((__x >> 1) & 0x55555555);
__x = (__x & 0x33333333) + ((__x >> 2) & 0x33333333);
return ((__x + (__x >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;
return (((__x + (__x >> 4)) & 0xF0F0F0F) * 0x1010101) >> 24;
#endif // _CCCL_BUILTIN_POPC
}

Expand Down

0 comments on commit 8d299ca

Please sign in to comment.