This is a general purpose math lib for the psp that uses almost nothing but pure vfpu instructions. The purpose of this lib is to give you a high speed math lib, as most of these functions perform way faster than the standard libm functions like atan2f, sinf, expf, logf, etc. Plus there are a few extra functions that perform quaternion math, a few matrix and vector functions.
Note this is not a complete lib, it's still being worked on as I add more functions. But its quite usable now, and theres a sample included that shows how the quaternion functions work.
To install the lib, just:
and it should copy the lib and pspmath.h file into the proper pspsdk folders (assuming you're using a svn pspsdk environment..dunno about the prebuilt packages).Code:make make install
To use in your projects:
and add -lpspmath to the LIBS line in your makefile.
Check the included sample as it does this as well.