]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027) 12055/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 Feb 2019 07:10:54 +0000 (23:10 -0800)
committerGitHub <noreply@github.com>
Tue, 26 Feb 2019 07:10:54 +0000 (23:10 -0800)
commit4e6646fef5d2cc53422e4eca0b18201ed5a5c4b6
tree37efa7fab70e4e02b4821c5c06f8a2ab3f3fb5cd
parent0395869c8c3dbf48ba2db48bcc78aa7e2086be32
bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027)

The standard math library (libm) may follow IEEE-754 recommendation to
include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x).
And this triggers a name clash, found by FreeBSD developer
Steve Kargl, who worken on putting sinpi into libm used on FreeBSD
(it has to be named "sinpi", not "sinPi", cf. e.g.
https://en.cppreference.com/w/c/experimental/fpext4).
(cherry picked from commit f57cd8288dbe6aba99c057f37ad6d58f8db75350)

Co-authored-by: Dima Pasechnik <dimpase@gmail.com>
Misc/NEWS.d/next/Library/2019-02-25-13-21-43.bpo-36106.VuhEiQ.rst [new file with mode: 0644]
Modules/mathmodule.c