Sam Jaffe
|
2818bd62d2
Renaming test type
|
7 anni fa |
Sam Jaffe
|
43ca1aab4f
Since the bigdecimal tests for int values are largely identical to the ones for biginteger, combine them as a typed test.
|
7 anni fa |
Sam Jaffe
|
ae88848432
Some formatting things
|
7 anni fa |
Sam Jaffe
|
dc784283ab
Convert to using GoogleMock for testing
|
7 anni fa |
Sam Jaffe
|
fc1b655b75
Adding tests for bigdecimal using integer values
|
7 anni fa |
Samuel Jaffe
|
6ca1a140ca
Removing unused shift10 export.
|
8 anni fa |
Samuel Jaffe
|
3d7a2065a9
Adding other comparison operators.
|
8 anni fa |
Samuel Jaffe
|
fb182cf808
Fixing operator equals
|
8 anni fa |
Samuel Jaffe
|
c122c8ff1e
Fixing division. Cleaning up multiplication code. Using getter functions where appropriate.
|
8 anni fa |
Samuel Jaffe
|
9edde52a47
Fixing multiplication and to_string.
|
8 anni fa |
Samuel Jaffe
|
b08fa174bc
Fixing equals-one check.
|
8 anni fa |
Samuel Jaffe
|
a61d5838af
Reversing commit d586b8c
|
8 anni fa |
Samuel Jaffe
|
ee7077654f
I think that this properly handles the various multiplication cases... but I really ought to mathematically prove it (with test cases for enough possible combos).
|
8 anni fa |
Samuel Jaffe
|
3c3d0eeb5c
Adding new test cases.
|
8 anni fa |
Samuel Jaffe
|
ac7e0d0a4d
Fix rescaling bug to force lossyness.
|
8 anni fa |
Samuel Jaffe
|
686f869964
Adding division with initial test cases (not complete).
|
8 anni fa |
Samuel Jaffe
|
ea28819179
Fixing bounds issue with negative numbers that use all 9 digits in the first cell.
|
8 anni fa |
Samuel Jaffe
|
8dc64b50f3
Fixing oob violations in detail::multiply and detail::subtract_nounderflow.
|
8 anni fa |
Samuel Jaffe
|
a855123300
Fixing to_string output when scale is negative.
|
8 anni fa |
Samuel Jaffe
|
bb2144baf3
Initial commit of big decimal code, supporting +, -, *.
|
8 anni fa |
Samuel Jaffe
|
d586b8cf26
Adding offset handling to multiplication.
|
8 anni fa |
Samuel Jaffe
|
4f9108a734
Reducing code duplication in biginteger.
|
8 anni fa |
Samuel Jaffe
|
5173ebab09
Making shift10 work in both directions.
|
8 anni fa |
Samuel Jaffe
|
c3d890af78
Fixing bug with inner compare loop.
|
8 anni fa |
Samuel Jaffe
|
67269aec3d
Updating compare to take an offset number of cells.
|
8 anni fa |
Samuel Jaffe
|
bf155c29d6
Splitting out an add for just one element to make division create fewer vectors.
|
8 anni fa |
Samuel Jaffe
|
6737f6b06e
Injecting an offset parameter into addition and subtraction.
|
8 anni fa |
Samuel Jaffe
|
ca146022fe
Moving helper functions in detail to a separate source file.
|
8 anni fa |
Samuel Jaffe
|
e4bf27d708
Combining integral constructors for biginteger.
|
8 anni fa |
Samuel Jaffe
|
09324c512f
Make modulo happen 'in-place'.
|
8 anni fa |