Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize WTF::Bitmap::forEachSetBit to use hardware intrinsics when a…
…vailable https://bugs.webkit.org/show_bug.cgi?id=254959 rdar://107584830 Reviewed by Justin Michaud. Changes WTF::Bitmap::forEachSetBit to use the ctz() intrinsic when it's available and implemented in hardware. This allows the method to skip up to a word at a time of zero bits, instead of having to visit each one, improving iteration times especially for sparse bitmaps. * Source/WTF/wtf/Bitmap.h: (WTF::WordType>::forEachSetBit const): Canonical link: https://commits.webkit.org/262602@main
- Loading branch information