aboutsummaryrefslogtreecommitdiff
path: root/include/base/math.h
blob: 41d385829a9251371d44f046da44e65462f327e6 (plain)
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
#pragma once

double	math·NaN(void);
double	math·Inf(int);
int	    math·isNaN(double);
int	    math·isInf(double, int);
ulong	math·umuldiv(ulong, ulong, ulong);
long	math·muldiv(long, long, long);

/* integer specific functions */
int     math·abs(int);
long	math·labs(long);

/* double specific functions */
double	math·pow(double, double);
double	math·atan2(double, double);
double	math·fabs(double);
double	math·atan(double);
double	math·ldexp(double, int);
double	math·log(double);
double	math·log10(double);
double	math·exp(double);
double	math·floor(double);
double	math·ceil(double);
double	math·round(double);
double	math·sin(double);
double	math·cos(double);
double	math·tan(double);
double	math·asin(double);
double	math·acos(double);
double	math·sinh(double);
double	math·cosh(double);
double	math·tanh(double);
double	math·sqrt(double);
double	math·fmod(double, double);
double	math·modf(double, double*);
double	math·frexp(double, int*);

/* float specific functions */
float   math·sqrtf(float);

double  math·copysign(double, double);

#define	math·HUGE	3.4028234e38
#define	math·PIO2	1.570796326794896619231e0
#define	math·PI	    (math·PIO2+math·PIO2)