Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline fixed float_to_fixed (float a)
- {
- return (fixed)(a * (1 << FRAC));
- }
- inline fixed fixmul (fixed a, fixed b)
- {
- return (fixed)((uint32) a * b >> FRAC);
- }
- inline fixed fixdiv (fixed a, fixed b)
- {
- return (fixed)((uint32) a / b << FRAC);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement