diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2012-03-01 21:07:48 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2012-03-01 21:07:48 +0000 |
commit | bef243d0bdd8914b1f7a364b1dd32f3df882c389 (patch) | |
tree | 83f78208418935865ef714bb98ccec67b069ff7c /tests | |
parent | f8ae8b99391b079561af8dcf8c4f699737085e11 (diff) | |
download | mpc-bef243d0bdd8914b1f7a364b1dd32f3df882c389.tar.gz |
sqr: copied code for imaginary part from naive computation also to the
Karatsuba algorithm
sqr.dat: added examples with imaginary part previously miscomputed by
Karatsuba
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1133 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sqr.dat | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sqr.dat b/tests/sqr.dat index ee59b0e..9d56f0e 100644 --- a/tests/sqr.dat +++ b/tests/sqr.dat @@ -160,6 +160,10 @@ # another interesting one with not exactly the same behaviour - - 100 -inf 100 -inf 100 -0xf@192058806 100 0x1@192058873 N N 0 + 100 0 100 inf 100 0x1@192058806 100 0x1@192058806 N N +# Re(op)*Im(op) can be computed, but multiplication by 2 triggers overflow +0 + 100 0 100 inf 100 0b1@536870911 100 0b1@536870911 N N +0 - 10 0 10 0b1.111111111e1073741822 100 0b1@536870911 100 0b1@536870911 N D +0 - 10 0 10 0b1.111111111e1073741822 100 0b1@536870912 100 0b1@536870912 N D 0 0 10 0 10 0b1e-1073741823 100 0b1@-536870912 100 0b1@-536870912 N N 0 - 10 0 10 0 100 0b1@-536870913 100 0b1@-536870913 N N 0 + 10 0 10 0b1@-1073741824 100 0b1@-536870913 100 0b1@-536870913 N U |