You can also use a library for it:
https://github.com/PetteriAimonen/libfixmath
I saw this getting forked for a custom SDK for the PS1 (which doesnt have a FPU).
https://github.com/PetteriAimonen/libfixmath
I saw this getting forked for a custom SDK for the PS1 (which doesnt have a FPU).