FS2_Open
Open source remastering of the Freespace 2 engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fix.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) Volition, Inc. 1999. All rights reserved.
3
*
4
* All source code herein is the property of Volition, Inc. You may not sell
5
* or otherwise commercially exploit the source or things you created based on the
6
* source.
7
*
8
*/
9
10
11
12
13
#ifdef _WIN32
14
#include <windows.h>
15
#endif
16
17
#include "
globalincs/pstypes.h
"
18
#include "
math/fix.h
"
19
20
21
22
fix
fixmul
(
fix
a
,
fix
b
)
23
{
24
longlong
tmp;
25
tmp = (
longlong
)a * (
longlong
)
b
;
26
return
(
fix
)(tmp>>16);
27
}
28
29
fix
fixdiv
(
fix
a
,
fix
b
)
30
{
31
return
MulDiv
(a,65536,b);
32
}
33
34
fix
fixmuldiv
(
fix
a
,
fix
b
,
fix
c
)
35
{
36
return
MulDiv
(a,b,c);
37
}
pstypes.h
a
GLboolean GLboolean GLboolean GLboolean a
Definition:
Glext.h:5781
fixmuldiv
fix fixmuldiv(fix a, fix b, fix c)
Definition:
fix.cpp:34
fix
long fix
Definition:
pstypes.h:54
b
GLboolean GLboolean GLboolean b
Definition:
Glext.h:5781
MulDiv
int MulDiv(int number, int numerator, int denominator)
longlong
__int64 longlong
Definition:
pstypes.h:60
fix.h
fixdiv
fix fixdiv(fix a, fix b)
Definition:
fix.cpp:29
fixmul
fix fixmul(fix a, fix b)
Definition:
fix.cpp:22
c
const GLubyte * c
Definition:
Glext.h:8376
code
math
fix.cpp
Generated on Sun May 1 2016 16:22:44 for FS2_Open by
1.8.10