summaryrefslogtreecommitdiff
path: root/libgcompat/math.c
blob: 2c793e4e3d023245f7c1386a36a2e2be1a4d963d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <math.h>	// isinf, isnan

int __isinff(float number)
{
	return isinf(number);
}

int __isinf(double number)
{
	return isinf(number);
}

int __isnanf(float number)
{
	return isnan(number);
}

int __isnan(double number)
{
	return isnan(number);
}

extern __typeof(__isnanf) isnanf __attribute__((weak, alias("__isnanf")));
extern __typeof(__isnan) isnan __attribute__((weak, alias("__isnan")));
extern __typeof(__isinff) isinff __attribute__((weak, alias("__isinff")));
extern __typeof(__isinf) isinf __attribute__((weak, alias("__isinf")));