Skip to content

Conversation

@AreaZeroArven
Copy link

Because math_util does not branch or write to memory, instead using register, using ARM code instead of THUMB works here for modern compilers. Also no need for -fno-toplevel-reorder because this optimization is safe for this too.

Here is an example:
Screenshot 2023-10-10 at 10 27 47 AM

Because math_util does not branch or write to memory, instead using register, using ARM code instead of THUMB works here. Also no need for -fno-toplevel-reorder because this optimization is safe for this too.
@SBird1337
Copy link
Collaborator

I mean... yes, but I don't think the project's scope is micro optimizing the codebase. This one is especially random since it is only used by one part of the berry crush minigame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants