More NaN hardening in the analysis code
This commit is contained in:
parent
fa85e3bf28
commit
122971b8cc
4 changed files with 23 additions and 9 deletions
|
@ -140,7 +140,7 @@ typedef float celt_ener;
|
|||
#ifdef FLOAT_APPROX
|
||||
/* This code should reliably detect NaN/inf even when -ffast-math is used.
|
||||
Assumes IEEE 754 format. */
|
||||
static inline int celt_isnan(float x)
|
||||
static OPUS_INLINE int celt_isnan(float x)
|
||||
{
|
||||
union {float f; opus_uint32 i;} in;
|
||||
in.f = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue