Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4654057d5187d9ce28ad082559c95838c931cf2f
      
https://github.com/WebKit/WebKit/commit/4654057d5187d9ce28ad082559c95838c931cf2f
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-06-28 (Sun, 28 Jun 2026)

  Changed paths:
    M Source/WTF/wtf/BitVector.cpp
    M Source/WTF/wtf/BitVector.h

  Log Message:
  -----------
  Use WTF::roundUpToMultipleOf in BitVector::OutOfLineBits::create
https://bugs.webkit.org/show_bug.cgi?id=318065
rdar://180865497

Reviewed by Yusuke Suzuki.

Replace the hand-rolled round-up expression in OutOfLineBits::create()
with WTF::roundUpToMultipleOf(). This is just clearer.

Mark bitsInPointer(), maxInlineBits(), and byteCount() as constexpr so
that the compile-time divisor template form
roundUpToMultipleOf<bitsInPointer()>() can be used.

* Source/WTF/wtf/BitVector.cpp:
(WTF::BitVector::OutOfLineBits::create):
*
Source/WTF/wtf/BitVector.h:
(WTF::BitVector::bitsInPointer):
(WTF::BitVector::maxInlineBits):
(WTF::BitVector::byteCount):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Dj8g2Z3QP2&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE1OTk0QG1haW4=&emid=76f5c9fc-79d4-4cc2-bf90-b2cc2b17af82&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to