[all-commits] [llvm/llvm-project] bfd95a: MathExtras: rewrite some methods to never overflow...

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Sat Jun 15 02:23:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfd95a003139a8f930874b2234c3cab545d504a1
      https://github.com/llvm/llvm-project/commit/bfd95a003139a8f930874b2234c3cab545d504a1
  Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
  Date:   2024-06-15 (Sat, 15 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Support/MathExtras.h
    M llvm/unittests/Support/MathExtrasTest.cpp

  Log Message:
  -----------
  MathExtras: rewrite some methods to never overflow (#95556)

Rewrite divideCeil, divideNearest, divideFloorSigned, and
divideCeilSigned to never overflow.



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


More information about the All-commits mailing list