[llvm] [ADT] Add implementations for avgFloor and avgCeil to APInt (PR #84431)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 08:48:23 PST 2024


jayfoad wrote:

Incidentally Hacker's Delight has a section "Average of Two Integers" which has some neat tricks for implementing these operations without extending to N+1-bit integers.

https://github.com/llvm/llvm-project/pull/84431


More information about the llvm-commits mailing list