(RGL PS3) Make functions static and make macros out of small inline
functions