llvm-project/llvm/include
Nathan Slingerland 644badbf01 [Support] Change SaturatingAdd()/SaturatingMultiply() to use pointer for returning overflow state
Summary:
Improve SaturatingAdd()/SaturatingMultiply() to use bool * to optionally return overflow result.
This should make it clearer that the value is returned at callsites and reduces the size of the implementation.

Reviewers: davidxl, silvas

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D15219

llvm-svn: 255128
2015-12-09 17:11:28 +00:00
..
llvm [Support] Change SaturatingAdd()/SaturatingMultiply() to use pointer for returning overflow state 2015-12-09 17:11:28 +00:00
llvm-c [IR] Add support for empty tokens 2015-11-11 21:57:16 +00:00