[PATCH] D65494: [Support] Added overflow checking add, sub and mul.

Nandor Licker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 17:39:32 PDT 2019


nand created this revision.
nand added reviewers: jfb, Bigcheese, rsmith.
Herald added subscribers: llvm-commits, dexonsmith.
Herald added a project: LLVM.

Added AddOverflow, SubOverflow and MulOverflow to compute truncated results and return a flag indicating whether overflow occured.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65494

Files:
  llvm/include/llvm/Support/MathExtras.h
  llvm/unittests/Support/MathExtrasTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65494.212480.patch
Type: text/x-patch
Size: 7653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190731/af3c75b2/attachment.bin>


More information about the llvm-commits mailing list