aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-11 22:42:25 -0800
committerChris Robinson <[email protected]>2018-01-11 22:42:25 -0800
commit1f236d8f204c66a5c0a1885b6893d6cb8b0c289d (patch)
tree0731a2bc5d154352e57507dfba5383fd016a81c8 /OpenAL32
parent370817ba604954418b1d0e03daa11b1d55614e2e (diff)
Define a function where it's used
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 7706d598..76624a66 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -306,24 +306,6 @@ inline size_t RoundUp(size_t value, size_t r)
return value - (value%r);
}
-/* Scales the given value using 64-bit integer math, rounding the result. */
-inline ALuint64 ScaleRound(ALuint64 val, ALuint64 new_scale, ALuint64 old_scale)
-{
- return (val*new_scale + old_scale/2) / old_scale;
-}
-
-/* Scales the given value using 64-bit integer math, flooring the result. */
-inline ALuint64 ScaleFloor(ALuint64 val, ALuint64 new_scale, ALuint64 old_scale)
-{
- return val * new_scale / old_scale;
-}
-
-/* Scales the given value using 64-bit integer math, ceiling the result. */
-inline ALuint64 ScaleCeil(ALuint64 val, ALuint64 new_scale, ALuint64 old_scale)
-{
- return (val*new_scale + old_scale-1) / old_scale;
-}
-
/* Fast float-to-int conversion. Assumes the FPU is already in round-to-zero
* mode. */
inline ALint fastf2i(ALfloat f)