summaryrefslogtreecommitdiff
path: root/gmpxx.h
Commit message (Expand)AuthorAgeFilesLines
* gmpxx.h: Special handling for mpq==0Marco Bodrato2018-03-031-3/+8
* gmpxx.h (__gmp_binary_equal): Optimised comparison mpq == integer.Marco Bodrato2018-02-281-3/+3
* gmpxx.h (__gmp_binary_{min,pl}us): Special case for mpq -/+ 1.Marco Bodrato2018-02-281-0/+10
* Use mpf_sgn to access _mp_size in gmpxx.h.Marc Glisse2017-06-021-1/+1
* Optimize 1/q to call mpq_inv.Marc Glisse2016-10-281-2/+27
* mpz_init cannot throw.Marc Glisse2016-04-071-2/+2
* New C++ function fibonacci.Marc Glisse2015-11-121-8/+39
* Reject negative operands for primorial, after Marco's suggestion.Marc Glisse2015-11-101-7/+5
* New C++ function primorial.Marc Glisse2015-11-081-0/+27
* Update copyright years on gmpxx.h.Marc Glisse2015-11-081-1/+1
* Mark the static member function inline.Marc Glisse2015-11-081-2/+2
* factorial in C++.Marc Glisse2015-11-081-0/+97
* Nicer failure mode for C++ binary functions.Marc Glisse2015-11-071-7/+70
* Nicer failure mode for C++ unary function.Marc Glisse2015-11-071-5/+18
* Use the new mpq_cmp_z in gmpxx.h.Marc Glisse2015-10-131-51/+93
* Prepare for expressions like factorial(int).Marc Glisse2014-12-271-2/+20
* Add C++ functions gcd and lcm.Marc Glisse2014-06-171-0/+38
* The C++ standard was modified so common_type now decays.Marc Glisse2014-05-081-2/+2
* Update library files license to use LGPL3+ and GPL2+.Torbjorn Granlund2014-01-271-7/+18
* Canonicalise copyright headers.Torbjorn Granlund2014-01-191-3/+3
* Use https to link to GNU license.Torbjorn Granlund2013-12-021-1/+1
* Collapse copyright years.Torbjorn Granlund2013-11-281-2/+1
* Update some old uses of __GMPXX_CONSTANT to bring them in line with the new o...Marc Glisse2013-02-171-26/+17
* Construct temporary mpq from double on the stack, as is already the case for ...Marc Glisse2013-02-171-93/+28
* gmpxx.h (mpq_class, mpf_class): Some more SI->UI optimisations.Marco Bodrato2013-02-171-18/+33
* #include <algorithm> for std::swap.Marc Glisse2013-02-161-0/+1
* Use __builtin_constant_p in mpz_class::init_* and mpz_class::assign_*.Marc Glisse2013-02-151-6/+48
* Refactor the C++ code to convert from builtin types so we have a singleMarc Glisse2013-02-151-103/+62
* Reduce the number of worker functions in __gmp_binary_equal (forwardMarc Glisse2013-02-141-8/+8
* Remove code duplication between __gmp_binary_greater and __gmp_binary_less.Marc Glisse2013-02-141-60/+2
* Specialize std::common_type for expressions with builtin types.Marc Glisse2012-07-281-0/+25
* Disable __builtin_constant_p for g++34.Marc Glisse2012-07-211-1/+3
* specializing numeric_limits is useless if the content is private...Marc Glisse2012-06-231-0/+3
* Unify handling of mpf with mpz/mpq. Function eval had 2 arguments for mpf:Marc Glisse2012-06-091-75/+43
* Handle mpq_class(0,1)Marc Glisse2012-05-311-1/+8
* explicit conversion to boolMarc Glisse2012-05-111-0/+12
* C++11 user-defined literalsMarc Glisse2012-03-081-2/+22
* Specialize std::numeric_limits for mp*_class types. It is mostly meaningless,...Marc Glisse2012-02-291-0/+114
* Use macros like NUM, ALLOC, SIZ, etc in mpq/*.Marc Glisse2012-02-241-0/+5
* Remove a temporary in expressions like q=q*q+z*z: tmp=z*z, q=q*q, q+=tmp.Marc Glisse2012-02-181-12/+12
* Comment out long double function declarations. Half of them were already comm...Marc Glisse2012-02-181-3/+3
* Specialize std::common_type in C++11.Marc Glisse2012-02-181-2/+24
* Replace e=a*b-c*d with tmp=c*d, e=a*b, e-=tmp, which uses one less temporary.Marc Glisse2012-02-161-6/+9
* Remove test for compilosaurus.Marc Glisse2012-02-011-13/+2
* Initial C++11 support.Marc Glisse2012-01-301-6/+45
* Replace d=a+b+c with (d=a+b)+=c when c!=d.Marc Glisse2012-01-301-8/+40
* Make sure we never compute -LONG_MIN.Marc Glisse2012-01-281-19/+24
* more mp_bitcnt_t...Marc Glisse2012-01-281-10/+11
* Spacing cleanup.Torbjorn Granlund2011-11-211-1/+1
* Add swap functions to gmpxx.Marc Glisse2011-09-211-0/+10