Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLD: blacklist powl (longdouble power function) on OS X. #8318

Merged
merged 1 commit into from
Nov 26, 2016

Conversation

rgommers
Copy link
Member

Closes gh-8307

@charris charris added this to the 1.12.0 release milestone Nov 26, 2016
@charris charris merged commit 7ec8f69 into numpy:master Nov 26, 2016
@charris
Copy link
Member

charris commented Nov 26, 2016

Thanks Ralf.

@charris charris removed this from the 1.12.0 release milestone Nov 26, 2016
@rgommers rgommers deleted the powl-osx branch November 26, 2016 19:33
WarrenWeckesser added a commit to WarrenWeckesser/numpy that referenced this pull request Aug 27, 2020
The use of the math library powl was blacklisted on Mac OSX
(numpygh-8318) because powl(0, y) would trigger a divide-by-zero
warning even when y > 0 (issue numpygh-8307).

This change creates npy_powl on OSX that avoids the spurious
warning by not calling powl when x = 0 and y > 0.

The change in npy_math_internal.h.src moves the handling
of pow out of a template repeat-loop, so powl and powf
are handled individually.  This allows the creation of
npy_powl to be specialized when NPY_OS_DARWIN is defined.

Closes numpygh-8608.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants