File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -2241,31 +2241,6 @@ do
22412241 return carry;
22422242}
22432243
2244- // result = left - right
2245- // returns carry (0 or 1)
2246- BigDigit subSimple (BigDigit [] result,const (BigDigit) [] left,
2247- const (BigDigit) [] right) pure nothrow
2248- in
2249- {
2250- assert (result.length == left.length,
2251- " result and left must be of the same length" );
2252- assert (left.length >= right.length,
2253- " left must be longer or of equal length to right" );
2254- assert (right.length > 0 , " right must not be empty" );
2255- }
2256- do
2257- {
2258- BigDigit carry = multibyteSub(result[0 .. right.length],
2259- left[0 .. right.length], right, 0 );
2260- if (right.length < left.length)
2261- {
2262- result[right.length .. left.length] = left[right.length .. $];
2263- carry = multibyteIncrementAssign! (' -' )(result[right.length.. $], carry);
2264- } // else if (result.length == left.length+1) { result[$-1] = carry; carry=0; }
2265- return carry;
2266- }
2267-
2268-
22692244/* result = result - right
22702245 * Returns carry = 1 if result was less than right.
22712246*/
You can’t perform that action at this time.
0 commit comments