-
Currently you can pass single precision floats (and converted doubles) into inline C code and back via Float32Array or with shared buffer with Int32Array for conversions of single values when passing parameters (more info https://gist.github.com/fanoush/9227640a869d78d69a799276dff0fb71#file-espruino-fpu-softfp-inlinec-js-L24), maybe it would be nice to support float type directly when passing parameters to native code (with automatic conversion to/from javascript double)? then d2f and f2d would not be needed?
I was hoping I could add the following to E.compiledC, but even after accounting for the double-escaping, I'm not having success :
If you have any luck, please let me know!