forked from mia/Aegisub
properly make inlines static
Originally committed to SVN as r989.
This commit is contained in:
parent
0568af7ce0
commit
9339f1c45b
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ int SmallestPowerOf2(int x);
|
||||||
|
|
||||||
///////////
|
///////////
|
||||||
// Inlines
|
// Inlines
|
||||||
inline void IntSwap(int &a,int &b) {
|
static inline void IntSwap(int &a,int &b) {
|
||||||
int c = a;
|
int c = a;
|
||||||
a = b;
|
a = b;
|
||||||
b = c;
|
b = c;
|
||||||
|
@ -92,7 +92,7 @@ inline void IntSwap(int &a,int &b) {
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
// Clamp integer to range
|
// Clamp integer to range
|
||||||
// Code taken from http://bob.allegronetwork.com/prog/tricks.html#clamp
|
// 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 -= min;
|
||||||
x &= (~x) >> 31;
|
x &= (~x) >> 31;
|
||||||
x += min;
|
x += min;
|
||||||
|
|
Loading…
Reference in a new issue