Home
last modified time | relevance | path

Searched refs:CheckedInt (Results 1 – 1 of 1) sorted by relevance

/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/ADT/
DSequence.h126 struct CheckedInt { struct
130 static CheckedInt from(Integral FromValue) { in from() argument
133 CheckedInt Result; in from()
141 static CheckedInt from(Enum FromValue) { in from() argument
147 bool operator==(const CheckedInt &O) const { return Value == O.Value; }
148 bool operator!=(const CheckedInt &O) const { return Value != O.Value; }
150 CheckedInt operator+(intmax_t Offset) const {
151 CheckedInt Result; argument
157 intmax_t operator-(CheckedInt Other) const {
196 explicit SafeIntIterator(T Value) : SI(CheckedInt::from<T>(Value)) {} in SafeIntIterator() argument
[all …]