X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmemfuncs.c;h=fc1f2c9e5d2b5ae1496bc370e50d934efeeb42e0;hb=45d6da52ce69cbd24f5930e1cad88d425e706186;hp=455ffe77ea44acc865935bab96f757e0114e71b4;hpb=1639e26a6b22a59d0bfb8ad564530eeff593e4a3;p=mono.git diff --git a/mono/utils/memfuncs.c b/mono/utils/memfuncs.c index 455ffe77ea4..fc1f2c9e5d2 100644 --- a/mono/utils/memfuncs.c +++ b/mono/utils/memfuncs.c @@ -1,5 +1,6 @@ -/* - * memfuncs.c: Our own bzero/memmove. +/** + * \file + * Our own bzero/memmove. * * Copyright (C) 2013-2015 Xamarin Inc * @@ -53,11 +54,11 @@ /** * mono_gc_bzero_aligned: - * @dest: address to start to clear - * @size: size of the region to clear + * \param dest address to start to clear + * \param size size of the region to clear * - * Zero @size bytes starting at @dest. - * The address of @dest MUST be aligned to word boundaries + * Zero \p size bytes starting at \p dest. + * The address of \p dest MUST be aligned to word boundaries * * FIXME borrow faster code from some BSD libc or bionic */ @@ -99,12 +100,12 @@ mono_gc_bzero_aligned (void *dest, size_t size) /** * mono_gc_bzero_atomic: - * @dest: address to start to clear - * @size: size of the region to clear + * \param dest address to start to clear + * \param size size of the region to clear * - * Zero @size bytes starting at @dest. + * Zero \p size bytes starting at \p dest. * - * Use this to zero memory without word tearing when dest is aligned. + * Use this to zero memory without word tearing when \p dest is aligned. */ void mono_gc_bzero_atomic (void *dest, size_t size) @@ -136,14 +137,15 @@ mono_gc_bzero_atomic (void *dest, size_t size) /** * mono_gc_memmove_aligned: - * @dest: destination of the move - * @src: source - * @size: size of the block to move + * \param dest destination of the move + * \param src source + * \param size size of the block to move * - * Move @size bytes from @src to @dest. + * Move \p size bytes from \p src to \p dest. * * Use this to copy memory without word tearing when both pointers are aligned - */void + */ +void mono_gc_memmove_aligned (void *dest, const void *src, size_t size) { g_assert (unaligned_bytes (dest) == 0); @@ -203,11 +205,11 @@ mono_gc_memmove_aligned (void *dest, const void *src, size_t size) /** * mono_gc_memmove_atomic: - * @dest: destination of the move - * @src: source - * @size: size of the block to move + * \param dest destination of the move + * \param src source + * \param size size of the block to move * - * Move @size bytes from @src to @dest. + * Move \p size bytes from \p src to \p dest. * * Use this to copy memory without word tearing when both pointers are aligned */