[Bug target/93071] std::__lg (and all functions that use it) generates suboptimal code

2020-11-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93071 --- Comment #2 from Jonathan Wakely --- These might benefit from the same improvements (compile with -std=c++20): #include int i(int x) { return 31 - std::countl_zero((unsigned)x); } int j(int x) { return std::bit_width((unsigned)x)

[Bug target/93071] std::__lg (and all functions that use it) generates suboptimal code

2020-11-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93071 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|