Repository navigation
Conversation
Preserve the handle lookup, upper-only float cap and success result of func_0048AE20 with a file-wide fast-math flag for retail's min.s. Co-Authored-By: Codex <noreply@openai.com>
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.
Adds matching C for PAL
func_0048AE20(84 bytes). It resolves the supplied handle throughfunc_0048B428, writes the value capped only above at 1.0 to entry offset0x20, and returns whether the lookup succeeded. It retains the unused first argument and introduces no lower clamp.The file-wide
-ffast-mathflag makes the ordinary C conditional compile to retail'smin.s; the existing compiler/assembler pipeline is unchanged.Validation: compiled the final source through the repository's SN compiler and
tools/cc.sh, including its file flags; all 84 bytes match PAL retail at catalogue address0x0048AE20. Independently resolved the call relocation, including its object addend, to0x0048B428. Both versions oftools/progress.py --checkandtools/match_map.py --check, plusgit diff --check, pass.Only the new verified PAL map row and US
otherrow were added; every previous row was retained. Reports/README were regenerated; the US report is semantically unchanged. Based directly on upstream main independently of the other open PRs; PAL changes from 5,138 / 396,888 to 5,139 matched functions / 396,972 bytes.The baseline sources passed a full compilation in preceding work; this final new source was compiled and byte-checked separately. No US image is available locally, so global US match/relocation audits were not run. No retail data, disassembly, SDK sources or toolchain files are included.