-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed all instances of gBitTable[x] #5123
Conversation
This is kind of pedantic, and other people could overrule me on this, but would it be possible to do at least some cleanup on the results? I'd like to get some more feedback from others as to whether that's necessary. |
I'm unsure about what cleanup you're referring to. |
I guess as far as cleanup I meant removing extra parens and stuff. At the very least there was a case where it was doing ((1<< (x)) << 16) and I think that should be rewritten into (1<< (x+16)) |
I'd do |
Yea, my brain was just locked in on somehow doing the cleanup in the script. |
Script output cleaned up |
So far this looks good. I'll fix up the conflict and then merge it. |
not a review but what does |
Pretty sure it's unsigned 1 |
Now the question is, is it needed? |
anything blocking this? |
@hedara90 can you update the description that a 1u is used instead 1? |
Done |
|
`gBitTable[x]` takes nearly twice the time to complete as `(1u << x)` does, according to Hedara here: rh-hideout/pokeemerald-expansion#5123 , so it has been replaced. Stolen from RHH, essentially. @luckytyphlosion seems to have been the first to mention it.
Description
Removed all instances of
gBitTable[x]
and replaced them with(1u << (x))
.Added a migration script for replacing
gBitTable[x]
with(1u << (x))
.Issue(s) that this PR fixes
#5007
Discord contact info
hedara