[webkit-changes] [WebKit/WebKit] 3fdb8c: Use shifts to speedup floor() and round()

Brent Fulgham noreply at github.com
Thu Feb 16 21:37:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3fdb8cf70b8a1a20f2bf782f1690b6cd3eb9ee08
      https://github.com/WebKit/WebKit/commit/3fdb8cf70b8a1a20f2bf782f1690b6cd3eb9ee08
  Author: Brent Fulgham <bfulgham at apple.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M Source/WebCore/platform/LayoutUnit.h

  Log Message:
  -----------
  Use shifts to speedup floor() and round()
https://bugs.webkit.org/show_bug.cgi?id=250523
<rdar://problem/104441420>

Reviewed by Chris Dumez.

Suggested by Ahmad Saleem, based on the 2014 Blink patch in
https://chromium.googlesource.com/chromium/blink/+/143faa0607149758526318a98757a3055197cb0f

* Source/WebCore/platform/LayoutUnit.h:
(WebCore::LayoutUnit::round const):
(WebCore::LayoutUnit::floor const):

Canonical link: https://commits.webkit.org/260422@main




More information about the webkit-changes mailing list