Skip to content

docs(libc): add the missing msun licence notices to Math.cpp - #16014

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
oneandonlydean:docs/libc-math-msun-notices
Nov 5, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
oneandonlydean:docs/libc-math-msun-notices

Conversation

@oneandonlydean

Copy link
Copy Markdown
Collaborator

What

Adds the FreeBSD msun licence notices that core/libs/prx/libc/src/Math.cpp is 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) and tanhf (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) and log10 / 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" and e_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-tree against main and the open Math.cpp PRs (#10226 #10250 #10253 #10321 #10325 #10506 #10510 #10546 #10565 #11634): clean.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

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.
@oneandonlydean oneandonlydean self-assigned this Nov 5, 2026
@github-actions github-actions Bot added the libc label Nov 5, 2026
@JJenkx

JJenkx commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

A check against my open Math.cpp PRs: git merge-tree of this head against each of my 12 open branches that touch core/libs/prx/libc/src/Math.cpp reports no conflict for any of them.

Branch Merge with this PR
windows/libc-asin-acos-msun (#10253) clean
windows/libc-atanh-msun (#10315) clean
windows/libc-erf-msun (#10321) clean
windows/libc-erff-msun (#10226) clean
windows/libc-exp2-msun (#10274) clean
windows/libc-expf-msun (#10113) clean
windows/libc-hypot-msun (#10325) clean
windows/libc-hypotf-msun (#10328) clean
windows/libc-log-msun (#10245) clean
windows/libc-trig-double-msun (#10250) clean
windows/libc-fmod-edom (#10345) clean
windows/libc-fsinh-titles (#12053) clean

So this PR and those can merge in any order. I did not rebuild, since the change is comment-only.

AI-assisted: yes.

@oneandonlydean
oneandonlydean merged commit 8d5c34c into boykopovar:main Nov 5, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants