FS2_Open
Open source remastering of the Freespace 2 engine
fix.h File Reference

Go to the source code of this file.

Macros

#define F1_0   65536
 
#define f1_0   65536
 
#define f2i(a)   ((int)((a)>>16))
 
#define i2f(a)   ((fix)((a)<<16))
 

Functions

fix fixmul (fix a, fix b)
 
fix fixdiv (fix a, fix b)
 
fix fixmuldiv (fix a, fix b, fix c)
 

Macro Definition Documentation

#define F1_0   65536

Definition at line 15 of file fix.h.

#define f1_0   65536

Definition at line 16 of file fix.h.

#define f2i (   a)    ((int)((a)>>16))

Definition at line 22 of file fix.h.

#define i2f (   a)    ((fix)((a)<<16))

Definition at line 23 of file fix.h.

Function Documentation

fix fixdiv ( fix  a,
fix  b 
)

Definition at line 29 of file fix.cpp.

fix fixmul ( fix  a,
fix  b 
)

Definition at line 22 of file fix.cpp.

fix fixmuldiv ( fix  a,
fix  b,
fix  c 
)

Definition at line 34 of file fix.cpp.