Repository navigation
docs(libc): add the missing msun licence notices to Math.cpp - #16014
Merged
oneandonlydean merged 1 commit intoNov 5, 2026
Merged
Conversation
atan, sinf, cosf, tanf, tanhf, atan2, log10, log2 and the shared log kernel follow FreeBSD msun (s_atan.c, s_sinf.c, s_cosf.c, s_tanf.c, s_tanhf.c, e_atan2.c, e_log10.c, e_log2.c, k_log.h at release/11.4.0) but their sources were not listed at the top of the file. Add them to the existing SunPro list, and add the SunSoft notices of e_atan2.c and of e_log10.c/e_log2.c/k_log.h verbatim. Header comments only; no code change.
Contributor
|
A check against my open
So this PR and those can merge in any order. I did not rebuild, since the change is comment-only. AI-assisted: yes. |
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds the FreeBSD msun licence notices that
core/libs/prx/libc/src/Math.cppis missing. These functions follow msun (release/11.4.0), and every one of their constants is in the upstream file, but their sources were not listed at the top of the file:atan(s_atan.c),sinf/cosf/tanf(s_sinf.c,s_cosf.c,s_tanf.c) andtanhf(s_tanhf.c): their notice is the SunPro one already at the top of the file, word for word, so they are added to that list.atan2(e_atan2.c) andlog10/log2/ the shared log kernel (e_log10.c,e_log2.c,k_log.h): their SunSoft notices are copied verbatim from release/11.4.0 (including upstream's trailing space after "notice" ande_atan2.c's extra*line), next to the existing SunSoft notice.Header comments only; no code change. The new lines sit away from the end of the notice block, so open PRs that add a notice there (e.g. #11634) still merge cleanly.
Tested
Comment-only change. Each added notice was diffed against the upstream file at release/11.4.0 (no difference).
python3 tools/check_conventions.py: 0 errors.git merge-treeagainst main and the openMath.cppPRs (#10226 #10250 #10253 #10321 #10325 #10506 #10510 #10546 #10565 #11634): clean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)