提交 ab0c2cf4 编写于 作者: F fryshorts

libobs: Replace fmaxf with inline comparison.

This replaces the call to fmaxf with the equivalent inline comparison
which is a bit faster (at least on linux).
上级 f76ee956
......@@ -655,7 +655,7 @@ static void calc_volume_levels(struct obs_source *source, float *array,
float val_pow2 = val * val;
sum_val += val_pow2;
max_val = fmaxf(max_val, val_pow2);
max_val = (max_val > val_pow2) ? max_val : val_pow2;
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册