My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sw_mem_functions.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Header for Memory management functions
25  *
26  */
27 
28 #ifndef __LIB__MEM_FUNCTIONS_H__
29 #define __LIB__MEM_FUNCTIONS_H__
30 
31 #include <sw_types.h>
32 
33 void sw_malloc_init(void);
34 
44 void * sw_memmove(void * dest,const void *src, u32 count);
45 
55 void * sw_memset(void * dest, u32 c, u32 count);
56 
66 void * sw_memcpy(void *dst, const void *src, unsigned long count);
67 
77 int sw_memcmp(void *src, void *dest, unsigned long length);
78 
94 void *sw_memncpy(void *dst, const void *src, u32 count,u32 dstLen,u32 srcLen);
95 
96 #endif
void * sw_memcpy(void *dst, const void *src, unsigned long count)
This version of memcpy assumes disjoint ptrs src, dst.
Definition: sw_mem_functions.c:100
void * sw_memncpy(void *dst, const void *src, u32 count, u32 dstLen, u32 srcLen)
Copies the values of Num bytes from the location pointed by source directly to the memory block point...
Definition: sw_mem_functions.c:141
void * sw_memset(void *dest, u32 c, u32 count)
memory set
Definition: sw_mem_functions.c:74
void * sw_memmove(void *dest, const void *src, u32 count)
memory move
Definition: sw_mem_functions.c:39
int sw_memcmp(void *src, void *dest, unsigned long length)
custom version of memcmp function
Definition: sw_mem_functions.c:115
void sw_malloc_init(void)
Initial Memory Allocation Heap also initialized.
Definition: sw_heap.c:55
s32int count
Definition: virtual_keyboard.c:40