fix issue 16634 - std.math exposes yl2x and yl2xp1 publicly #4975
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was duplicate code in core.math and std.math: the same function declarations and the same unittests. yl2x and yl2xp1 are implemented in the compiler.
There is indeed no proper documentation for their existence in phobos. I could not find documentation for core.math.yl2xp1 either. Maybe it should be added as part of this PR?
So far, I removed these functions from phobos, since they are available in core.math and std offers no extra functionality with regard to them. Please let me know if there is a valid reason for keeping them in both druntime and phobos. If that is the case, we can simply document the situation.