~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to sysdeps/ieee754/ldbl-128/s_isinf_nsl.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Written by Ulrich Drepper <drepper@gmail.com>
 
3
 */
 
4
 
 
5
/*
 
6
 * __isinf_nsl(x) returns != 0 if x is ±inf, else 0;
 
7
 * no branching!
 
8
 */
 
9
 
 
10
#include "math.h"
 
11
#include "math_private.h"
 
12
 
 
13
int
 
14
__isinf_nsl (long double x)
 
15
{
 
16
        int64_t hx,lx;
 
17
        GET_LDOUBLE_WORDS64(hx,lx,x);
 
18
        return !(lx | ((hx & 0x7fffffffffffffffLL) ^ 0x7fff000000000000LL));
 
19
}