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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libm/] [math/] [s_nan.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/*
2
 * nan () returns a nan.
3
 * Added by Cygnus Support.
4
 */
5
 
6
/*
7
FUNCTION
8
        <<nan>>, <<nanf>>---representation of infinity
9
 
10
INDEX
11
        nan
12
INDEX
13
        nanf
14
 
15
ANSI_SYNOPSIS
16
        #include <math.h>
17
        double nan(void);
18
        float nanf(void);
19
 
20
TRAD_SYNOPSIS
21
        #include <math.h>
22
        double nan();
23
        float nanf();
24
 
25
 
26
DESCRIPTION
27
        <<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in
28
        double and single precision arithmetic respectivly.
29
 
30
QUICKREF
31
        nan - pure
32
 
33
*/
34
 
35
#include "fdlibm.h"
36
 
37
#ifndef _DOUBLE_IS_32BITS
38
 
39
        double nan()
40
{
41
        double x;
42
 
43
        INSERT_WORDS(x,0x7ff80000,0);
44
        return x;
45
}
46
 
47
#endif /* _DOUBLE_IS_32BITS */

powered by: WebSVN 2.1.0

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