PebbleOS
Loading...
Searching...
No Matches
Functions
FPU

Floating-point unit helpers. More...

Functions

void mcu_fpu_cleanup (void)
 Drop the calling thread's floating-point context.
 

Detailed Description

Floating-point unit helpers.

Function Documentation

◆ mcu_fpu_cleanup()

void mcu_fpu_cleanup ( void  )

Drop the calling thread's floating-point context.

Clears CONTROL.FPCA, so context switches stop stacking the FPU registers (an extra 132 bytes of stack) until the thread uses the FPU again. Call where no floating-point values are live, e.g. between events of an event loop.