diff options
author | Chris Robinson <[email protected]> | 2011-10-04 22:39:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-10-04 22:39:35 -0700 |
commit | 75fee8c11f76889285e3b68cc1f3d13e92dacc26 (patch) | |
tree | 89e4ceabb2bd14d18304408db70b78de38264d7f /OpenAL32/Include | |
parent | 9e11b0a8c6c521a0c8b4dc4ed7c05017a787ca62 (diff) |
Add min/max/clamp methods for 64-bit int
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 814b5034..7ee2aa31 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -175,6 +175,13 @@ static __inline ALint maxi(ALint a, ALint b) static __inline ALint clampi(ALint val, ALint min, ALint max) { return mini(max, maxi(min, val)); } +static __inline ALint64 mini64(ALint64 a, ALint64 b) +{ return ((a > b) ? b : a); } +static __inline ALint64 maxi64(ALint64 a, ALint64 b) +{ return ((a > b) ? a : b); } +static __inline ALint64 clampi64(ALint64 val, ALint64 min, ALint64 max) +{ return mini64(max, maxi64(min, val)); } + static __inline ALfloat lerp(ALfloat val1, ALfloat val2, ALfloat mu) { |