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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.