First set of licensing changes
[mono.git] / mono / utils / memfuncs.h
1 /*
2  * memfuncs.h: Our own bzero/memmove.
3  *
4  * Copyright (C) 2015 Xamarin Inc
5  *
6  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
7  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
8  */
9
10 #ifndef __MONO_UTILS_MEMFUNCS_H__
11 #define __MONO_UTILS_MEMFUNCS_H__
12
13 #include <stdlib.h>
14
15 /*
16 These functions must be used when it's possible that either destination is not
17 word aligned or size is not a multiple of word size.
18 */
19 void mono_gc_bzero_atomic (void *dest, size_t size);
20 void mono_gc_bzero_aligned (void *dest, size_t size);
21 void mono_gc_memmove_atomic (void *dest, const void *src, size_t size);
22 void mono_gc_memmove_aligned (void *dest, const void *src, size_t size);
23
24 #endif