How to use the FPU in teensy 3.6?

Status
Not open for further replies.
Hello,

I wanted to know if i have to initialize the floating point unit to use it? And if so, how do I make this initialization?

I'm really new at this and I'm having some trouble figuring it out if my codes are already running with the FPU or not.
 
Last edited:
It's used automatically. Just make sure you use float variables rather than double. The main place to watch is calling functions like sinf() or logf() rather than sin() or log(). The double versions will compute with 64 bits, which isn't accelerated by the FPU.
 
Status
Not open for further replies.
Back
Top