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

                     
 
                  
 


                                         
                                                     
                                             
                                                           
 

      
#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