diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 17:42:36 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 17:42:36 +0200 |
commit | e9683297bf480f9590b0e5796f4520fb430e2e03 (patch) | |
tree | 93ef75cd154edf4c342d0a22cd56eb3670feb2b5 /src/common/include/stdlib_common.h | |
parent | e8cf65c07d78e3cfbac953b1b97c51998a5900df (diff) | |
download | TCE-e9683297bf480f9590b0e5796f4520fb430e2e03.tar.gz TCE-e9683297bf480f9590b0e5796f4520fb430e2e03.zip |
Now using Doug Lea's malloc for userland too. And improved stability.
Diffstat (limited to 'src/common/include/stdlib_common.h')
-rw-r--r-- | src/common/include/stdlib_common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/include/stdlib_common.h b/src/common/include/stdlib_common.h new file mode 100644 index 0000000..80c188f --- /dev/null +++ b/src/common/include/stdlib_common.h @@ -0,0 +1,14 @@ +#ifndef _DEF_STDLIB_H +#define _DEF_STDLIB_H + +#include <types.h> + +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + +void *memcpy(void *dest, const void *src, int count); +void *memset(void *dest, int val, int count); +uint16_t *memsetw(uint16_t *dest, uint16_t val, int count); + +#endif + |