diff options
Diffstat (limited to 'DevIL/src-ILU/include/ilu_internal.h')
-rw-r--r-- | DevIL/src-ILU/include/ilu_internal.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/DevIL/src-ILU/include/ilu_internal.h b/DevIL/src-ILU/include/ilu_internal.h index 61980e6e..239da929 100644 --- a/DevIL/src-ILU/include/ilu_internal.h +++ b/DevIL/src-ILU/include/ilu_internal.h @@ -77,18 +77,11 @@ ILfloat ilSin(ILfloat Angle); ILint ilRound(ILfloat Num); #ifndef NOINLINE -INLINE ILfloat ilCos(ILfloat Angle) { - return (ILfloat)(cos(Angle * IL_DEGCONV)); -} - -INLINE ILfloat ilSin(ILfloat Angle) { - return (ILfloat)(sin(Angle * IL_DEGCONV)); -} +ILfloat ilCos(ILfloat Angle); +ILfloat ilSin(ILfloat Angle); -INLINE ILint ilRound(ILfloat Num) { - return (ILint)(Num + 0.5); // this is truncating in away-from-0, not rounding -} +ILint ilRound(ILfloat Num); #endif |