Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b74760b1824cecb3c476eee726a722e558f633a2
https://github.com/WebKit/WebKit/commit/b74760b1824cecb3c476eee726a722e558f633a2
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-21 (Fri, 21 Aug 2026)
Changed paths:
M Source/WTF/wtf/MathExtras.h
M Tools/TestWebKitAPI/Tests/WTF/MathExtras.cpp
Log Message:
-----------
[WTF] Fix roundevenf / roundeven sign for 0
https://bugs.webkit.org/show_bug.cgi?id=322252
rdar://185487391
Reviewed by Keith Miller.
non ARM64 architecture's roundevenf / roundeven implementations have a
problem that it returns roundevenf(-0.5) => +0.0 instead of -0.0. This
patch fixes it.
Test: Tools/TestWebKitAPI/Tests/WTF/MathExtras.cpp
* Source/WTF/wtf/MathExtras.h:
(roundevenf):
(roundeven):
* Tools/TestWebKitAPI/Tests/WTF/MathExtras.cpp:
(TestWebKitAPI::isNegativeZero):
(TestWebKitAPI::TEST(WTF, roundeven)):
Canonical link: https://commits.webkit.org/319609@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications