Enable RPi Pico's optimized ROM floating point routines #202
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.
Summary of changes
I was looking in to adding better PWM support on RPi Pico, but discovered that it needs floating point math, and the pico doesn't have a floating point processor in the core, so this would be slow. Then, I discovered that RPi included optimized floating point routines in ROM, but that Mbed currently isn't using them. This means that Mbed will score worse than the Pico SDK on floating point benchmarks, and that won't do!
In this PR, I added the needed SDK files and updated CMake to use them. Note: Everything under pico-sdk/ is copied straight from the Pico SDK and does not need to be reviewed.
Impact of changes
Mbed now enables the floating point wrappers needed for optimized floating point support on RPi Pico. This should make floating point operations run on the order of 2-5x faster.
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers