-
we switched to use the FPU a while back and that messed up how doubles are passed
the
-mfloat-abi=softfp
was there for a reason so that float could be passed like ints in R0-R4 so that InlineC code could receive float arguments (like this). Is there a reason-mfloat-abi=hard
is needed?THe
-mfloat-abi=softfp -mfpu=fpv4-sp-d16
is a compromise so that both code using softfloats and code with fpu instructions could be linked together.
Ok - try now!
Turns out it was two issues :)
-8.0
) was wrong - and I think that's what hit youRunning:
Now shows the right values for me