Repository navigation
Conversation
Cyberpunk 2077 imports __powidf2 and the export threw for every call. It is the compiler helper for integer powers, implemented as LLVM compiler-rt writes it. Listed in boykopovar#2010; console behavior unverified and recorded in TechnicalDebt.
|
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes. |
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.
PR body draft — feat/powidf2-compilerrt (DRAFT, needs Dan's sentence)
What
[TBD Dan's sentence.]
Cyberpunk 2077 imports
__powidf2and the export threw for every call. It is the compiler helper for integer powers, implemented here exactly as LLVM compiler-rt writes it, so the NID keeps pointing at the same behavior any clang-built title expects. Non-exact cases like10^-5can differ frompowin the last bit; the test pins exact cases bit-for-bit and checks the rest againstpowwith a tight tolerance.Tested
ctest -R guest_mathpasses: exact powers, zero and negative-zero bases,NaNand infinity to the zeroth,INT_MINandINT_MAXexponents, one bit-exact check, and two tolerance checks. Without the fix the test does not link (no such symbol); with it, it passes. Two mutations (shift instead of divide, dropping the reciprocal) both fail.check_conventions.pypending at push time.Checklist
main; no other open PR implements the same functions (rebase at open time; feat(libc): implement __powidf2 and _WStoul #1980 covered this export and was closed without merge)NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)