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

Polymorphic function params (single vs double FP) #165

Open
saosebastiao opened this issue Aug 15, 2023 · 1 comment
Open

Polymorphic function params (single vs double FP) #165

saosebastiao opened this issue Aug 15, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@saosebastiao
Copy link

Hi, I've been looking through this project quite a bit and I think the concept is super interesting and promising.

I just wanted to point out that most microcontroller targets that this could potentially run on can do double precision calculations, but they only have single precision FPUs (if they have an FPU at all). This effectively means that double precision calculations are going to be anywhere from 2x-32x slower than single precision calculations

With that in mind, it would be cool if there was a way to select via compilation arguments whether to use single vs double precision calculations, and that way we could get some performance enhancement on microcontrollers.

@pantor
Copy link
Owner

pantor commented Sep 3, 2023

Great suggestion, I like that idea!

@pantor pantor added the enhancement New feature or request label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants