aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-05-12 00:52:09 -0700
committerChris Robinson <[email protected]>2018-05-12 00:52:09 -0700
commite787a241c0e96b890f2173ec71aa02b5b9411ec6 (patch)
tree23c8965efe5599829eb13964ca1a6da0b48fea54 /Alc/helpers.c
parent3867cad94de7e1ddc1538e25d77e30381bf4bb40 (diff)
Add and use a method for fast float rounding
Unlike fastf2i, this keeps the result as a float instead of converting to integer.
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 7bcb3f4a..e54f3fb2 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -125,6 +125,7 @@ extern inline ALuint NextPowerOf2(ALuint value);
extern inline size_t RoundUp(size_t value, size_t r);
extern inline ALint fastf2i(ALfloat f);
extern inline int float2int(float f);
+extern inline float fast_roundf(float f);
#ifndef __GNUC__
#if defined(HAVE_BITSCANFORWARD64_INTRINSIC)
extern inline int msvc64_ctz64(ALuint64 v);