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

Subversion Repositories or1k

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

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

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

powered by: WebSVN 2.1.0

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