llvm-project
b1571936 - [ADT] Handle uint8_t and uint16_t in countr_zero (#158518)

Commit
230 days ago
[ADT] Handle uint8_t and uint16_t in countr_zero (#158518) Without this patch, the uint8_t and uint16_t cases are sent to the fallback route. This patch fixes that by relaxing the "if" condition. While it's hard to test that the correct control path is taken within countr_zero, this patch adds a few tests just to verify the correctness on uint8_t and uint16_t inputs.
Parents
Loading