generate_tsl_neon-asimd/include/generated/definitions/mask_ls/mask_ls_neon.hpp:850:36:
warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
850 | if ((imask >> i) & 0b1 == true) {
| ^~~~~~~~~~~~~
This looks like the generated code is "wrong". If == is evaluated first, the code checks if (mask >> i) & true, where true will just be 1. So this has the same effect in the end. You can probably just remove the == true because any value != 0 should evaluate to true anyway.
I'm getting the following warning with NEON:
This looks like the generated code is "wrong". If
==
is evaluated first, the code checks if(mask >> i) & true
, wheretrue
will just be1
. So this has the same effect in the end. You can probably just remove the== true
because any value != 0 should evaluate to true anyway.