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

« back to all changes in this revision

Viewing changes to sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.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_ns(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
#undef __isinf_ns
 
14
int
 
15
__isinf_ns (double x)
 
16
{
 
17
        int64_t ix;
 
18
        EXTRACT_WORDS64(ix,x);
 
19
        return (ix & UINT64_C(0x7fffffffffffffff)) == UINT64_C(0x7ff0000000000000);
 
20
}