-
Notifications
You must be signed in to change notification settings - Fork 939
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
RP2350 FPU compiler flags #1993
Comments
I was testing that and PS. But |
That's not going to work with the standard SDK setup. Many FP functions are wrapped, such as That said, if you're doing any reasonable amount of FP ops in a function, and not just one or two, I don't imagine any gains to be very large. Moving from FP regs to normal ones is only a 1-cycle OP, I'd imagine... |
Roughly what i was going to say 😄
Upshot is that we decided that the benefit of hard-fp is minimal More importantly, using it is currently not supported as noted, as all the assembly functions in You can probably use hardfp if you set |
See earlephilhower/arduino-pico#2535
According to this it seems like it is using softmp mode for floating point operation for the RP2350.
SoftFP (soft floating point): Use hardware floating-point operations, but function calls pass parameters via general-purpose registers (compatible with non-FPU systems).
HardFP (hard floating point): Pass floating-point values in floating-point registers during function calls (which is faster but requires hardware FPU support).
Is there any reason for this and would hardfp make floating point performance better (I am using the FPU primarely for Audio DSP).
The text was updated successfully, but these errors were encountered: