summaryrefslogblamecommitdiff
path: root/src/common/include/stdlib_common.h
blob: dc40b96d63bcd77540c3b7e31e3e9019303ae99c (plain) (tree)
1
2
3
4
5
6
7
8

                     
 
                  
 


                                         



                  
                                                     
                                             
                                                           
 



                  

      
#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