From 9543dea272753af63312d76fee212af5c7ace521 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 25 Apr 2008 22:27:37 +0000 Subject: [PATCH] --- ase/cmn/mem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ase/cmn/mem.c b/ase/cmn/mem.c index 65e4cb76..d73977ed 100644 --- a/ase/cmn/mem.c +++ b/ase/cmn/mem.c @@ -1,5 +1,5 @@ /* - * $Id: mem.c 168 2008-04-24 14:25:47Z baconevi $ + * $Id: mem.c 169 2008-04-25 04:27:37Z baconevi $ * * {License} */ @@ -76,6 +76,7 @@ void* ase_memset (void* dst, int val, ase_size_t n) rem = ((ase_size_t)dst) & (ASE_SIZEOF(vector unsigned char)-1); if (rem > 0) { + /* handle leading unaligned part */ do { *d++ = (ase_byte_t)val; } while (n-- > 0 && ++rem < ASE_SIZEOF(vector unsigned char)); } @@ -102,7 +103,7 @@ void* ase_memset (void* dst, int val, ase_size_t n) d = (ase_byte_t*)vd; } - /* handle the trailing parts */ + /* handle the trailing part */ while (n-- > 0) *d++ = (ase_byte_t)val; return dst;