summaryrefslogtreecommitdiff
path: root/src/common/include/stdlib_common.h
blob: dc40b96d63bcd77540c3b7e31e3e9019303ae99c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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))

#ifdef __cplusplus
extern "C" {
#endif

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);

#ifdef __cplusplus
}
#endif

#endif