Skip to content

00446: Resolve sinpi name clash with libm#98

Merged
hroncok merged 1 commit into
fedora-python:fedora-3.6from
vstinner:fedora-3.6-sinpi
Jan 3, 2025
Merged

00446: Resolve sinpi name clash with libm#98
hroncok merged 1 commit into
fedora-python:fedora-3.6from
vstinner:fedora-3.6-sinpi

Conversation

@vstinner

Copy link
Copy Markdown

bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (pythonGH-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 f57cd82)

bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (pythonGH-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 f57cd82)

Co-authored-by: Victor Stinner <vstinner@python.org>
@hroncok hroncok merged commit d2e9c37 into fedora-python:fedora-3.6 Jan 3, 2025
@vstinner vstinner deleted the fedora-3.6-sinpi branch January 5, 2025 10:04
@vstinner

vstinner commented Jan 6, 2025

Copy link
Copy Markdown
Author

Thanks for merging my PR :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants