mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-12 10:48:42 -04:00
Mark log2fapprox as const.
This commit is contained in:
@@ -1098,7 +1098,7 @@ void SpectrumVis::webapiUpdateSpectrumSettings(
|
||||
// so we can use the following approximation to get a good speed-up for both compilers:
|
||||
// https://www.vplesko.com/posts/replacing_log2f.html
|
||||
// https://www.vplesko.com/assets/replacing_log2f/main.c.txt
|
||||
float SpectrumVis::log2fapprox(float x)
|
||||
float SpectrumVis::log2fapprox(float x) const
|
||||
{
|
||||
// IEEE 754 representation constants.
|
||||
const int32_t mantissaLen = 23;
|
||||
|
||||
Reference in New Issue
Block a user