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