Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: df226e8e58a5f2edaa765348b402c2b005f86882
https://github.com/WebKit/WebKit/commit/df226e8e58a5f2edaa765348b402c2b005f86882
Author: Keita Nonaka <[email protected]>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M Source/WTF/wtf/MathExtras.h
Log Message:
-----------
[WTF] Use `std::countl_zero` in `fastLog2` to improve readability and
performance
https://bugs.webkit.org/show_bug.cgi?id=292607
Reviewed by Keith Miller.
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.
* Source/WTF/wtf/MathExtras.h:
(WTF::fastLog2):
Canonical link: https://commits.webkit.org/294620@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes