[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Wed Feb 28 07:31:00 UTC 2018
details: /var/hg/gmp/rev/7cae59f06a21
changeset: 17578:7cae59f06a21
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Feb 28 08:29:01 2018 +0100
description:
tests/cxx/t-ops2qf.cc (checkqf): Some check for +/- 1, +/- 0.
details: /var/hg/gmp/rev/2efd05ef991f
changeset: 17579:2efd05ef991f
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Feb 28 08:30:33 2018 +0100
description:
Changelog
diffstat:
ChangeLog | 1 +
tests/cxx/t-ops2qf.cc | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diffs (32 lines):
diff -r 45d04f4f51f4 -r 2efd05ef991f ChangeLog
--- a/ChangeLog Wed Feb 28 08:24:04 2018 +0100
+++ b/ChangeLog Wed Feb 28 08:30:33 2018 +0100
@@ -3,6 +3,7 @@
* gmpxx.h (__gmp_binary_plus): Special case for mpq + 1.
(__gmp_binary_minus): Special case for mpq - 1.
(__gmp_binary_equal): Optimised comparison mpq == integer.
+ * tests/cxx/t-ops2qf.cc (checkqf): Some check for +/- 1, +/- 0.
2018-02-18 Marco Bodrato <bodrato at mail.dm.unipi.it>
diff -r 45d04f4f51f4 -r 2efd05ef991f tests/cxx/t-ops2qf.cc
--- a/tests/cxx/t-ops2qf.cc Wed Feb 28 08:24:04 2018 +0100
+++ b/tests/cxx/t-ops2qf.cc Wed Feb 28 08:30:33 2018 +0100
@@ -21,6 +21,8 @@
template<class T>
void checkqf (){
+ CHECK_ALL(T,5.,0,+);
+ CHECK_ALL(T,5.,0,-);
CHECK_ALL(T,5.,2,+); CHECK_MPZ(T,5.,2,+);
CHECK_ALL(T,5.,2,-); CHECK_MPZ(T,5.,2,-);
CHECK_ALL(T,5.,2,*); CHECK_MPZ(T,5.,2,*);
@@ -28,6 +30,8 @@
CHECK_ALL(T,0.,2,/);
CHECK_ALL_SIGNS(T,11.,3,+);
CHECK_ALL_SIGNS(T,11.,3,-);
+ CHECK_ALL_SIGNS(T,13.,1,+);
+ CHECK_ALL_SIGNS(T,13.,1,-);
CHECK_ALL_SIGNS(T,11.,3,*);
CHECK_ALL_SIGNS(T,11.,4,/);
CHECK_SI(T,LONG_MIN,1,*);
More information about the gmp-commit
mailing list