summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/libm/s_isinf.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
committer3gg <3gg@shellblade.net>2026-03-06 13:30:59 -0800
commit30f41c02aec763d32e62351452da9ef582bc3472 (patch)
tree6bec3f65bfdcbf7f1a631da21a6d613bef5db2fa /contrib/SDL-3.2.8/src/libm/s_isinf.c
parent452ff21ca02e315c64ceeb3f21c1ea357aeb1bc8 (diff)
Move contrib libraries to contrib repo
Diffstat (limited to 'contrib/SDL-3.2.8/src/libm/s_isinf.c')
-rw-r--r--contrib/SDL-3.2.8/src/libm/s_isinf.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/contrib/SDL-3.2.8/src/libm/s_isinf.c b/contrib/SDL-3.2.8/src/libm/s_isinf.c
deleted file mode 100644
index 9486b05..0000000
--- a/contrib/SDL-3.2.8/src/libm/s_isinf.c
+++ /dev/null
@@ -1,24 +0,0 @@
1#include "SDL_internal.h"
2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Changed to return -1 for -Inf by Ulrich Drepper <drepper@cygnus.com>.
5 * Public domain.
6 */
7
8/*
9 * isinf(x) returns 1 is x is inf, -1 if x is -inf, else 0;
10 * no branching!
11 */
12
13#include "math.h"
14#include "math_private.h"
15
16int __isinf(double x)
17{
18 int32_t hx,lx;
19 EXTRACT_WORDS(hx,lx,x);
20 lx |= (hx & 0x7fffffff) ^ 0x7ff00000;
21 lx |= -lx;
22 return ~(lx >> 31) & (hx >> 30);
23}
24libm_hidden_def(__isinf)