properly make inlines static

Originally committed to SVN as r989.
This commit is contained in:
David Lamparter 2007-04-03 21:24:29 +00:00
parent 0568af7ce0
commit 9339f1c45b

View file

@ -82,7 +82,7 @@ int SmallestPowerOf2(int x);
///////////
// Inlines
inline void IntSwap(int &a,int &b) {
static inline void IntSwap(int &a,int &b) {
int c = a;
a = b;
b = c;
@ -92,7 +92,7 @@ inline void IntSwap(int &a,int &b) {
//////////////////////////
// Clamp integer to range
// Code taken from http://bob.allegronetwork.com/prog/tricks.html#clamp
FORCEINLINE int ClampSignedInteger32(int x,int min,int max) {
FORCEINLINE static int ClampSignedInteger32(int x,int min,int max) {
x -= min;
x &= (~x) >> 31;
x += min;