aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/math.h
blob: 4a23bd86dc788ff562feb2ae1cc7c1497bc168a7 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#pragma once

// TODO

#define INFINITY	0

#define NAN	0

#define HUGE_VAL 0
#define HUGE_VALF 0
#define HUGE_VALL 0

// Float
float fabsf(float x);

float cosf(float x);
float sinf(float x);
float tanf(float x);

float acosf(float x);
float asinf(float x);
float atan2f(float y, float x);

float floorf(float x);
float ceilf(float x);
float fmodf(float x, float y);

float sqrtf(float x);
float logf(float x);
float log2f(float x);
float log10f(float x);
float expf(float x);
float frexpf(float x, int *exp);
float powf(float x, float y);

// Double
double fabs(double x);

double cos(double x);
double sin(double x);
double tan(double x);

double acos(double x);
double asin(double x);
double atan2(double y, double x);

double floor(double x);
double ceil(double x);
double fmod(double x, double y);

double sqrt(double x);
double log(double x);
double log2(double x);
double log10(double x);
double exp(double x);
double frexp(double x, int *exp);
double pow(double x, double y);

/* vim: set sts=0 ts=4 sw=4 tw=0 noet :*/