Lines Matching refs:result
25 twodigit_t result = twodigit_t{a} + b;
26 *carry = result >> kDigitBits;
27 return static_cast<digit_t>(result);
29 digit_t result = a + b;
30 *carry = (result < a) ? 1 : 0;
31 return result;
39 twodigit_t result = twodigit_t{a} + b + c;
40 *carry = result >> kDigitBits;
41 return static_cast<digit_t>(result);
43 digit_t result = a + b;
44 *carry = (result < a) ? 1 : 0;
45 result += c;
46 if (result < c) *carry += 1;
47 return result;
54 twodigit_t result = twodigit_t{a} - b;
55 *borrow = (result >> kDigitBits) & 1;
56 return static_cast<digit_t>(result);
58 digit_t result = a - b;
59 *borrow = (result > a) ? 1 : 0;
60 return result;
69 twodigit_t result = twodigit_t{a} - subtrahend;
70 *borrow_out = (result >> kDigitBits) & 1;
71 return static_cast<digit_t>(result);
73 digit_t result = a - b;
74 *borrow_out = (result > a) ? 1 : 0;
75 if (result < borrow_in) *borrow_out += 1;
76 result -= borrow_in;
77 return result;
81 // Returns the low half of the result. High half is in {high}.
84 twodigit_t result = twodigit_t{a} * b;
85 *high = result >> kDigitBits;
86 return static_cast<digit_t>(result);
89 // For inputs [AH AL]*[BH BL], the result is:
158 // we mask the shift amount with {kShiftMask}, and the result with