From 7fc0f3531952aba7c568ca9dd08549e72e285c60 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 25 Apr 2008 07:53:17 +0000 Subject: [PATCH] --- ase/cmn/mem.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ase/cmn/mem.c b/ase/cmn/mem.c index bc04b59e..604e7067 100644 --- a/ase/cmn/mem.c +++ b/ase/cmn/mem.c @@ -1,5 +1,5 @@ /* - * $Id: mem.c 166 2008-04-24 13:40:41Z baconevi $ + * $Id: mem.c 167 2008-04-24 13:53:17Z baconevi $ * * {License} */ @@ -72,8 +72,6 @@ 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) { - ase_byte_t* d = (ase_byte_t*)dst; - do { *d++ = (ase_byte_t)val; } while (n-- > 0 && ++rem < ASE_SIZEOF(vector unsigned char)); } @@ -93,7 +91,7 @@ void* ase_memset (void* dst, int val, ase_size_t n) do { *vd++ = v16; - n += ASE_SIZEOF(vector unsigned char); + n -= ASE_SIZEOF(vector unsigned char); } while (n >= ASE_SIZEOF(vector unsigned char)); @@ -112,7 +110,6 @@ void* ase_memset (void* dst, int val, ase_size_t n) rem = IS_UNALIGNED(dst); if (rem > 0) { - d = (ase_byte_t*)dst; do { *d++ = (ase_byte_t)val; } while (n-- > 0 && ++rem < ASE_SIZEOF(ase_size_t)); }