| 1909 | } |
| 1910 | |
| 1911 | void Integer::Divide(Integer &remainder, Integer "ient, const Integer ÷nd, const Integer &divisor) |
| 1912 | { |
| 1913 | PositiveDivide(remainder, quotient, dividend, divisor); |
| 1914 | |
| 1915 | if (dividend.IsNegative()) |
| 1916 | { |
| 1917 | quotient.Negate(); |
| 1918 | if (!!remainder) |
| 1919 | { |
| 1920 | --quotient; |
| 1921 | remainder = divisor.AbsoluteValue() - remainder; |
| 1922 | } |
| 1923 | } |
| 1924 | |
| 1925 | if (divisor.IsNegative()) |
| 1926 | quotient.Negate(); |
| 1927 | } |
| 1928 | |
| 1929 | Integer operator/(const Integer &a, const Integer &b) |
| 1930 | { |
nothing calls this directly
no test coverage detected