Lines Matching defs:result

24 constexpr bool CheckedAddImpl(T x, T y, T* result) {
33 *result = static_cast<T>(uresult);
51 static constexpr bool Do(T x, U y, V* result) {
54 return CheckedAddFastOp<T, U>::Do(x, y, result);
78 *result = static_cast<V>(presult);
84 constexpr bool CheckedSubImpl(T x, T y, T* result) {
93 *result = static_cast<T>(uresult);
111 static constexpr bool Do(T x, U y, V* result) {
114 return CheckedSubFastOp<T, U>::Do(x, y, result);
138 *result = static_cast<V>(presult);
144 constexpr bool CheckedMulImpl(T x, T y, T* result) {
155 *result = is_negative ? 0 - uresult : uresult;
158 // a +1 bound for a negative result.
173 static constexpr bool Do(T x, U y, V* result) {
176 return CheckedMulFastOp<T, U>::Do(x, y, result);
179 // Verify the destination type can hold the result (always true for 0).
197 *result = static_cast<V>(presult);
214 static constexpr bool Do(T x, U y, V* result) {
238 *result = static_cast<V>(presult);
253 static constexpr bool Do(T x, U y, V* result) {
257 *result = static_cast<Promotion>(presult);
269 // are undefined. Otherwise it is defined when the result fits.
277 static constexpr bool Do(T x, U shift, V* result) {
283 *result = static_cast<V>(as_unsigned(x) << shift);
285 return *result >> shift == x;
307 static bool Do(T x, U shift, V* result) {
312 *result = static_cast<V>(tmp);
331 static constexpr bool Do(T x, U y, V* result) {
333 *result = static_cast<V>(tmp);
350 static constexpr bool Do(T x, U y, V* result) {
352 *result = static_cast<V>(tmp);
369 static constexpr bool Do(T x, U y, V* result) {
371 *result = static_cast<V>(tmp);
389 static constexpr bool Do(T x, U y, V* result) {
392 *result = static_cast<V>(tmp);
410 static constexpr bool Do(T x, U y, V* result) {
413 *result = static_cast<V>(tmp);
428 static constexpr bool Do(T x, U y, V* result) { \
431 *result = static_cast<V>(presult); \