Pandora About Floating Point On The Pandora


torpor said:
I wish someone would write a NEON FP library in Assembly that can be dropped in as a replacement for math.h .. this would be very useful, but I don't have the skills with NEON to do such a thing .. ah well, one for the list.
If by FP you mean floating-point, then Adventus has already done some work :)
 
Last edited by a moderator:
I believe they meant floating point. They would not need to use fixed point if fast neon-accelerated floating point was a drop-in alternative.
In that case here's the functions I've implemented: math_neon.h

It covers pretty much all the drop in replacements for the standard cmath stuff. It's fairly optimised while still maintaining the cmath argument compliance... but I'll add some vectorised versions which should significantly improve the performance. For each function there are 2-3 versions, a c version which is as close as possible to the NEON version, a softfp NEON version and a hardfp NEON version.
 
Back
Top