Bug 292607
| Summary: | [WTF] Use `std::countl_zero` in `fastLog2` to improve readability and performance | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keita Nonaka <iKonnyaku40> |
| Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keita Nonaka
Use std::countl_zero to simplify the code and improve performance.
std::countl_zero provides a more efficient and readable approach compared to manually branching for leading zero counts.
This change is expected to improve both code readability and potential runtime efficiency.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Keita Nonaka
Pull request: https://github.com/WebKit/WebKit/pull/45003
EWS
Committed 294620@main (df226e8e58a5): <https://commits.webkit.org/294620@main>
Reviewed commits have been landed. Closing PR #45003 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/150851747>