ruckig icon indicating copy to clipboard operation
ruckig copied to clipboard

Polymorphic function params (single vs double FP)

Open saosebastiao opened this issue 2 years ago • 1 comments

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.

saosebastiao avatar Aug 15 '23 16:08 saosebastiao

Great suggestion, I like that idea!

pantor avatar Sep 03 '23 07:09 pantor