]> Git Repo - uclibc-ng.git/blame - libm/s_isinff.c
ldouble_wrappers.c: remove erroneous libm_hidden_def's
[uclibc-ng.git] / libm / s_isinff.c
CommitLineData
0e05d982
BRF
1/*
2 * Written by J.T. Conklin <[email protected]>.
3 * Public domain.
4 */
5
0e05d982
BRF
6/*
7 * isinff(x) returns 1 if x is inf, -1 if x is -inf, else 0;
8 * no branching!
9 */
10
11#include "math.h"
12#include "math_private.h"
13
38b7304e 14int __isinff (float x)
0e05d982
BRF
15{
16 int32_t ix,t;
17 GET_FLOAT_WORD(ix,x);
18 t = ix & 0x7fffffff;
19 t ^= 0x7f800000;
20 t |= -t;
21 return ~(t >> 31) & (ix >> 30);
22}
40b8158b 23libm_hidden_def(__isinff)
This page took 0.030423 seconds and 4 git commands to generate.