More NaN hardening in the analysis code

This commit is contained in:
Jean-Marc Valin 2013-12-10 13:55:35 -05:00
parent fa85e3bf28
commit 122971b8cc
4 changed files with 23 additions and 9 deletions

View file

@ -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;