Skip to content

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

Merged
charris merged 1 commit intonumpy:masterfrom
rgommers:powl-osx
Nov 26, 2016
Merged

BLD: blacklist powl (longdouble power function) on OS X. #8318
charris merged 1 commit intonumpy:masterfrom
rgommers:powl-osx

Conversation

@rgommers
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants