Replaced log2 and round functions with macros since they were missing on a user's system.
Replaced log2 and round functions with macros since they were missing on a user's system.

FreeBirdLjj/b3d,FreeBirdLjj/b3d,FreeBirdLjj/b3d,FreeBirdLjj/b3d