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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libm/] [common/] [sf_nan.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/*
2
 * nanf () returns a nan.
3
 * Added by Cygnus Support.
4
 */
5
 
6
#include "fdlibm.h"
7
 
8
        float nanf()
9
{
10
        float x;
11
 
12
        SET_FLOAT_WORD(x,0x7fc00000);
13
        return x;
14
}
15
 
16
#ifdef _DOUBLE_IS_32BITS
17
 
18
        double nan()
19
{
20
        return (double) nanf();
21
}
22
 
23
#endif /* defined(_DOUBLE_IS_32BITS) */
24
 

powered by: WebSVN 2.1.0

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