diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-22 21:37:00 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-22 21:37:00 (GMT) |
| commit | 22d7865e6df4f29b7b1d2d2e31361ac0c9d9f7f1 (patch) | |
| tree | 6fe887c70e640b972fa84d7a617a37b851756c50 /src/Misc.cpp | |
| parent | 892584c5fe241b628b98caa3936bb031c4940fce (diff) | |
| download | powder-22d7865e6df4f29b7b1d2d2e31361ac0c9d9f7f1.zip powder-22d7865e6df4f29b7b1d2d2e31361ac0c9d9f7f1.tar.gz | |
Inline restrict_flt
Diffstat (limited to 'src/Misc.cpp')
| -rw-r--r-- | src/Misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Misc.cpp b/src/Misc.cpp index c52be54..bba64a0 100644 --- a/src/Misc.cpp +++ b/src/Misc.cpp @@ -74,7 +74,7 @@ int isign(float i) //TODO: INline or macro return 0; } -unsigned clamp_flt(float f, float min, float max) //TODO: Also inline/macro +TPT_INLINE unsigned clamp_flt(float f, float min, float max) //TODO: Also inline/macro { if (f<min) return 0; @@ -83,7 +83,7 @@ unsigned clamp_flt(float f, float min, float max) //TODO: Also inline/macro return (int)(255.0f*(f-min)/(max-min)); } -float restrict_flt(float f, float min, float max) //TODO Inline or macro or something +TPT_INLINE float restrict_flt(float f, float min, float max) //TODO Inline or macro or something { if (f<min) return min; |
