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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libm/] [common/] [s_nan.c] - Diff between revs 148 and 158

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

Rev 148 Rev 158
/*
/*
 * nan () returns a nan.
 * nan () returns a nan.
 * Added by Cygnus Support.
 * Added by Cygnus Support.
 */
 */
 
 
/*
/*
FUNCTION
FUNCTION
        <<nan>>, <<nanf>>---representation of ``Not a Number''
        <<nan>>, <<nanf>>---representation of ``Not a Number''
 
 
INDEX
INDEX
        nan
        nan
INDEX
INDEX
        nanf
        nanf
 
 
ANSI_SYNOPSIS
ANSI_SYNOPSIS
        #include <math.h>
        #include <math.h>
        double nan(const char *);
        double nan(const char *);
        float nanf(const char *);
        float nanf(const char *);
 
 
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 respectively.  The
        double- and single-precision arithmetic respectively.  The
        argument is currently disregarded.
        argument is currently disregarded.
 
 
QUICKREF
QUICKREF
        nan - pure
        nan - pure
 
 
*/
*/
 
 
#include "fdlibm.h"
#include "fdlibm.h"
 
 
#ifndef _DOUBLE_IS_32BITS
#ifndef _DOUBLE_IS_32BITS
 
 
        double nan(const char *unused)
        double nan(const char *unused)
{
{
        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.