Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 38b34df1ab771b304387f2c75c6f1a775f22028f
      
https://github.com/WebKit/WebKit/commit/38b34df1ab771b304387f2c75c6f1a775f22028f
  Author: Sam Weinig <[email protected]>
  Date:   2025-08-02 (Sat, 02 Aug 2025)

  Changed paths:
    M Source/WTF/wtf/MathExtras.h

  Log Message:
  -----------
  [WTF] Modernize wtf/MathExtras.h
https://bugs.webkit.org/show_bug.cgi?id=296832

Reviewed by Darin Adler.

Does a pass of modernizing wtf/MathExtras.h by utilizing
concepts/requires and adopting constexpr more broadly.

* Source/WTF/wtf/MathExtras.h:
(WTF::isNaNConstExpr):
(WTF::fabsConstExpr):
(defaultMinimumForClamp):
(defaultMaximumForClamp):
(clampTo):
(clampToInteger):
(clampToUnsigned):
(clampToFloat):
(clampToPositiveInteger):
(isWithinIntRange):
(normalizedFloat):
(divideRoundedUp):
(timesThreePlusOneDividedByTwo):
(isNotZeroAndOrdered):
(isZeroOrUnordered):
(isGreaterThanNonZeroPowerOfTwo):
(WTF::fastLog2):
(WTF::safeFPDivision):
(WTF::areEssentiallyEqual):
(WTF::nanPropagatingMin):
(WTF::nanPropagatingMax):
(WTF::isIntegral):
(WTF::incrementWithSaturation):
(WTF::leftShiftWithSaturation):
(WTF::nonEmptyRangesOverlap):
(WTF::rangesOverlap):
(WTF::shuffleVector):
(WTF::isIdentical):
(WTF::isRepresentableAsImpl):
(WTF::isRepresentableAs):
(WTF::roundUpToMultipleOf):
(WTF::roundUpToMultipleOfNonPowerOfTwo):
(WTF::distanceToMultipleOf):
(WTF::roundDownToMultipleOf):
(sizeof): Deleted.

Canonical link: https://commits.webkit.org/298169@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

Reply via email to