Comment Comment by tomn another solution is to just cast the result to an uint8_t; with this, clang 19.1.0 gives the same assembly:https://gcc.godbolt.org/z/E5oTW5eKe parent tomn 1 year ago
https://gcc.godbolt.org/z/E5oTW5eKe