OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libm/] [math/] [s_nan.c] - Diff between revs 40 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 40 Rev 1765
/*
/*
 * nan () returns a nan.
 * nan () returns a nan.
 * Added by Cygnus Support.
 * Added by Cygnus Support.
 */
 */
 
 
/*
/*
FUNCTION
FUNCTION
        <<nan>>, <<nanf>>---representation of infinity
        <<nan>>, <<nanf>>---representation of infinity
 
 
INDEX
INDEX
        nan
        nan
INDEX
INDEX
        nanf
        nanf
 
 
ANSI_SYNOPSIS
ANSI_SYNOPSIS
        #include <math.h>
        #include <math.h>
        double nan(void);
        double nan(void);
        float nanf(void);
        float nanf(void);
 
 
TRAD_SYNOPSIS
TRAD_SYNOPSIS
        #include <math.h>
        #include <math.h>
        double nan();
        double nan();
        float nanf();
        float nanf();
 
 
 
 
DESCRIPTION
DESCRIPTION
        <<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in
        <<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in
        double and single precision arithmetic respectivly.
        double and single precision arithmetic respectivly.
 
 
QUICKREF
QUICKREF
        nan - pure
        nan - pure
 
 
*/
*/
 
 
#include "fdlibm.h"
#include "fdlibm.h"
 
 
#ifndef _DOUBLE_IS_32BITS
#ifndef _DOUBLE_IS_32BITS
 
 
        double nan()
        double nan()
{
{
        double x;
        double x;
 
 
        INSERT_WORDS(x,0x7ff80000,0);
        INSERT_WORDS(x,0x7ff80000,0);
        return x;
        return x;
}
}
 
 
#endif /* _DOUBLE_IS_32BITS */
#endif /* _DOUBLE_IS_32BITS */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.