(XDK D3D) Replace more functions with optimal inlined functions