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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libquadmath/] [math/] [isinfq.c] - Blame information for rev 740

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 740 jeremybenn
/*
2
 * Written by J.T. Conklin <jtc@netbsd.org>.
3
 * Change for long double by Jakub Jelinek <jj@ultra.linux.cz>
4
 * Public domain.
5
 */
6
 
7
#include "quadmath-imp.h"
8
 
9
int
10
isinfq (__float128 x)
11
{
12
  int64_t hx,lx;
13
  GET_FLT128_WORDS64(hx,lx,x);
14
  lx |= (hx & 0x7fffffffffffffffLL) ^ 0x7fff000000000000LL;
15
  lx |= -lx;
16
  return ~(lx >> 63) & (hx >> 62);
17
}

powered by: WebSVN 2.1.0

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