Is the FPU of the nRF52 utilised when working with 32 bit floats?
I would like to find the most efficient method to process data from the accelerometer and I'm a bit confused at the moment:
I'm new to Espruino/JS and I might be confused by how C types are converted in Espruino. Could someone advise me the best approach?
Unfortunately the FPU isn't really used, no.
Realistically you'll find that if you're using JS the execution overhead of JS is far greater than that of dealing with doubles, so your issue is what makes the most efficient use of memory (and for that, Int16Array wins).
@Gordon Thank you for the explanation.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem