forked from cloudius-systems/osv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmath.cc
48 lines (41 loc) · 772 Bytes
/
math.cc
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (C) 2013 Cloudius Systems, Ltd.
*
* This work is open source software, licensed under the terms of the
* BSD license as described in the LICENSE file in the top-level directory.
*/
#include <math.h>
#include <osv/types.h>
#include <osv/export.h>
#include <cmath>
#include <ctgmath>
extern "C" OSV_LIBC_API
int __isnan(double v)
{
return std::isnan(v);
}
extern "C" OSV_LIBC_API
int __isnanf(float v)
{
return std::isnan(v);
}
extern "C" OSV_LIBC_API
int __isnanl(long double v)
{
return std::isnan(v);
}
extern "C" OSV_LIBC_API
int __isinf(double v)
{
return std::isinf(v);
}
extern "C" OSV_LIBC_API
int __isinff(float v)
{
return std::isinf(v);
}
extern "C" OSV_LIBC_API
int __isinfl(double v)
{
return std::isinf(v);
}