Skip to content
Snippets Groups Projects
Commit 5e465031 authored by Christos Gentsos's avatar Christos Gentsos
Browse files

General: better handle an input of zero in float_to_linear

parent 6740eff3
Branches
Tags
No related merge requests found
......@@ -8,6 +8,8 @@ uint16_t __xMR_FN_CALL float_to_linear(float val)
if (val)
exp = ceilf(log2f(fabsf(val)) - log2f(1023));
else
return 0;
if (exp < -16)
exp = -16;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment