summaryrefslogtreecommitdiffstats
path: root/Modules/_math.h
Commit message (Collapse)AuthorAgeFilesLines
* gh-101678: refactor the math module to use special functions from c11 ↵Sergey B Kirpichev2023-02-091-2/+3
| | | | | | | (GH-101679) Shouldn't affect users, hence no news. Automerge-Triggered-By: GH:mdickinson
* bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179)Christian Heimes2021-10-251-37/+20
| | | | | | | | | | | | | The :mod:`math` and :mod:`cmath` implementation now require a C99 compatible ``libm`` and no longer ship with workarounds for missing acosh, asinh, expm1, and log1p functions. The changeset also removes ``_math.c`` and moves the last remaining workaround into ``_math.h``. This simplifies static builds with ``Modules/Setup`` and resolves symbol conflicts. Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Brett Cannon <brett@python.org> Signed-off-by: Christian Heimes <christian@python.org>
* Issue #28256: Cleanup _math.cVictor Stinner2016-10-181-12/+12
| | | | | Only define fallback implementations when needed. It avoids producing deadcode when the system provides required math functions.
* Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken.Mark Dickinson2012-08-181-6/+2
|
* Merged revisions 76978 via svnmerge fromMark Dickinson2009-12-211-0/+36
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76978 | mark.dickinson | 2009-12-21 15:22:00 +0000 (Mon, 21 Dec 2009) | 3 lines Issue #7518: Move substitute definitions of C99 math functions from pymath.c to Modules/_math.c. ........
* Merged revisions 76861 via svnmerge fromMark Dickinson2009-12-161-0/+9
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76861 | mark.dickinson | 2009-12-16 20:13:40 +0000 (Wed, 16 Dec 2009) | 3 lines Issue #3366: Add expm1 function to math module. Thanks Eric Smith for testing on Windows. ........