Skip to content

Commit

Permalink
Final edits for 2.1.0a4.
Browse files Browse the repository at this point in the history
  • Loading branch information
casevh committed Nov 12, 2018
1 parent d4f9a77 commit 003bddc
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '2.1'
# The full version, including alpha/beta/rc tags.
release = '2.1.0a3'
release = '2.1.0a4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
8 changes: 7 additions & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ Changes in gmpy2 2.1.0a3
* Fix for Cython interface.
* Fix mpz += 0 bug.

Changes in gmpy2 2.1.0a4
------------------------

* Fix issue 204; missing Cython file.
* Add support for fmma() and fmms() functions from MPFR 4.

Installation
============

Expand All @@ -97,7 +103,7 @@ Pre-compiled versions of gmpy2 2.0.8 are available at

A pre-compiled version of gmpy2 2.1.0a1 is available at
`https://pypi.org/project/gmpy2/2.1.0a1/`. Updated Windows versions should be
available again beginning with version 2.1.0a4.
available again beginning with version 2.1.0b1.

Installing gmpy2 on Unix/Linux
------------------------------
Expand Down
8 changes: 8 additions & 0 deletions docs/mpfr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,14 @@ mpfr Functions
**fma(...)**
fma(x, y, z) returns correctly rounded result of (x * y) + z.

**fmma(...)**
fmma(x, y, z, t) returns correctly rounded result of (x * y) + (z * t).
Requires MPFR 4.

**fmms(...)**
fmms(x, y, z, t) returns correctly rounded result of (x * y) - (z * t).
Requires MPFR 4.

**fmod(...)**
fmod(x, y) returns x - n*y where n is the integer quotient of x/y, rounded
to 0.
Expand Down
2 changes: 1 addition & 1 deletion setup-legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def finalize_options(self):
include_dirs=['./src'])

setup(name = "gmpy2",
version = "2.1.0a3dev0",
version = "2.1.0a4",
author = "Case Van Horsen",
author_email = "[email protected]",
license = "LGPL-3.0+",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def build_extensions(self):

setup(
name="gmpy2",
version="2.1.0a3",
version="2.1.0a4",
author="Case Van Horsen",
author_email="[email protected]",
cmdclass=cmdclass,
Expand Down
9 changes: 7 additions & 2 deletions src/gmpy2.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@
* - Add rootn(); same as root() except different sign when taking even root
* of -0.0
*
* 2.1.0a4
* Fix issue 204; missing file for Cython.
* Additional support for MPFR 4
* - Add fmma() and fmms()
*
************************************************************************
*
* Discussion on sizes of C integer types.
Expand Down Expand Up @@ -434,7 +439,7 @@

/* The following global strings are used by gmpy_misc.c. */

char gmpy_version[] = "2.1.0a3";
char gmpy_version[] = "2.1.0a4";

char gmpy_license[] = "\
The GMPY2 source code is licensed under LGPL 3 or later. The supported \
Expand Down Expand Up @@ -836,7 +841,7 @@ static PyMethodDef Pygmpy_methods [] =
};

static char _gmpy_docs[] =
"gmpy2 2.1.0a3 - General Multiple-precision arithmetic for Python\n"
"gmpy2 2.1.0a4 - General Multiple-precision arithmetic for Python\n"
"\n"
"gmpy2 supports several multiple-precision libraries. Integer and\n"
"rational arithmetic is provided by either the GMP or MPIR libraries.\n"
Expand Down
2 changes: 1 addition & 1 deletion test/test_misc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Miscellaneous Functions
>>> import gmpy2
>>> from gmpy2 import mpz
>>> gmpy2.version()
'2.1.0a3'
'2.1.0a4'
>>> gmpy2.mp_limbsize() in (32,64)
True
>>> gmpy2.mp_version().split()[0] in ['GMP', 'MPIR']
Expand Down

0 comments on commit 003bddc

Please sign in to comment.