Backport logGamma dragonfly fix (from ltsmaster impl)#64
Conversation
See [ltsmaster-phobos PR:45](ldc-developers#45 (comment))
|
So the surrounding asserts all use |
|
@kinke The change is not required when compiled using DMD (Not sure if they would except). Did you read the comment i made last time ? I did create a c++ program to see if it was a platform specific issue, which it does not seem to be. Someone with more knowledge about these math functions might have a better solution. I do agree that a 'dragonfly' specific case is ugly and should not be required, so this PR was 'my' way of making this issue known. |
|
DMD's |
|
In your C++ test, you used |
|
@kinke Looks like you have dealt with these issues before. Having to go through upstream will mean these changes will not land in 2.080.0 I guess, or is there a way to expedite this roundtrip ? |
|
We can cherry-pick this (preferrably without the DragonFly special case) for the pending LDC 1.10 release, no problem. It should land upstream too, but whether it makes it into 2.080.1 by targeting upstream branch |
See ltsmaster-phobos PR:45
(ie: using slightly less accuracy for DragonFlyBSD)
This somewhat ugly patch does work and i think it was ok for ltsmaster, having it in the master branch is not so nice. According to ISO Standard N1570 we should have been using 'lgamma/lgammal' and 'tgamma/tgammal' instead of gamma/gammal.
Question is this the right repo for this 'fix' or should this go upstream (dlang/phobos)?