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_isinfd.c] - Blame information for rev 179

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

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * __isinfd(x) returns 1 if x is infinity, else 0;
3
 * no branching!
4
 * Added by Cygnus Support.
5
 */
6
 
7
#include "fdlibm.h"
8
 
9
#ifndef _DOUBLE_IS_32BITS
10
 
11
int
12
_DEFUN (__isinfd, (x),
13
        double x)
14
{
15
        __int32_t hx,lx;
16
        EXTRACT_WORDS(hx,lx,x);
17
        hx &= 0x7fffffff;
18
        hx |= (__uint32_t)(lx|(-lx))>>31;
19
        hx = 0x7ff00000 - hx;
20
        return 1 - (int)((__uint32_t)(hx|(-hx))>>31);
21
}
22
 
23
#endif /* _DOUBLE_IS_32BITS */

powered by: WebSVN 2.1.0

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