Skip to content
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

change float calculation to fixed point calculation #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akkako
Copy link

@akkako akkako commented Dec 14, 2024

Cortex-M0/M0+/M4(not M4F)/M23 has no FPU, float calculations use soft abi implimentation.

This cause complex calculation process and large code size.

Change all float calculations to fixed point calculations can save about 4 kB Flash space, and more efficiency calculation process.

This change is only tested on GD32DEV_A_E230 target(I only have this).

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.

1 participant