Subversion Repositories Kolibri OS

Rev

Rev 5225 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5225 alpine 1
#ifndef RS_MICROLIBC_FOR_KOLIBRI_H
2
#define RS_MICROLIBC_FOR_KOLIBRI_H
3
 
4
// some math and string functions
5
 
6
#ifndef NULL
7
	#define NULL ((void*)0)
8
#endif
9
 
10
#ifndef uint32_t
11
	#define uint32_t unsigned int
12
#endif
13
 
14
#ifndef M_PI
15
	#define M_PI 3.14159265358979323846
16
#endif
17
 
18
 
19
 
20
double sqrt( double val );
21
float sqrtf( float f );
22
 
23
double sin(double x);
24
float sinf(float x);
25
 
26
double cos(double x);
27
float cosf(float x);
28
 
29
double pow(double x, double p);
30
float powf(float x, float p);
31
 
32
double exp(double x);
33
float expf(float x);
34
 
35
double log(double x);
36
float logf(float x);
37
 
38
int abs(int x);
39
double fabs(double x);
40
 
41
double floor(double x);
42
 
43
double round(double x);
44
float roundf(float x);
45
 
46
 
47
void* malloc(unsigned size);
48
void  free(void* pointer);
49
 
50
void*  memset(void *mem, int c, unsigned size);
51
void*  memcpy(void *dst, const void *src, unsigned size);
52
 
5243 alpine 53
char*  strchr(char* s, int c);
54
unsigned int strlen ( char * str );
55
 
5225 alpine 56
#endif