diff --git a/shared/vg_replace_strmem.c b/shared/vg_replace_strmem.c index 8de085a57..f3be41942 100644 --- a/shared/vg_replace_strmem.c +++ b/shared/vg_replace_strmem.c @@ -1200,6 +1200,11 @@ static inline void my_exit ( int x ) c8 = (c8 << 32) | c8; \ while ((a & 7) != 0 && n >= 1) \ { *(UChar*)a = (UChar)c; a += 1; n -= 1; } \ + while (n >= 32) \ + { *(ULong*)a = c8; a += 8; n -= 8; \ + *(ULong*)a = c8; a += 8; n -= 8; \ + *(ULong*)a = c8; a += 8; n -= 8; \ + *(ULong*)a = c8; a += 8; n -= 8; } \ while (n >= 8) \ { *(ULong*)a = c8; a += 8; n -= 8; } \ while (n >= 1) \ @@ -1212,6 +1217,11 @@ static inline void my_exit ( int x ) c4 = (c4 << 16) | c4; \ while ((a & 3) != 0 && n >= 1) \ { *(UChar*)a = (UChar)c; a += 1; n -= 1; } \ + while (n >= 16) \ + { *(UInt*)a = c4; a += 4; n -= 4; \ + *(UInt*)a = c4; a += 4; n -= 4; \ + *(UInt*)a = c4; a += 4; n -= 4; \ + *(UInt*)a = c4; a += 4; n -= 4; } \ while (n >= 4) \ { *(UInt*)a = c4; a += 4; n -= 4; } \ while (n >= 1) \