29ac3bf8cad6b3b2f475a00215101cf5c8e88a3c
markd
  Sun Mar 6 22:40:00 2011 -0800
used inline function and memset for zeroing memory to give optimizer a chance
diff --git src/lib/common.c src/lib/common.c
index ca004a6..7db5caa 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -53,38 +53,30 @@
 return cloneMem(s, size+1);
 }
 
 char *catTwoStrings(char *a, char *b)
 /* Allocate new string that is a concatenation of two strings. */
 {
 int aLen = strlen(a), bLen = strlen(b);
 int len = aLen + bLen;
 char *newBuf = needLargeMem(len+1);
 memcpy(newBuf, a, aLen);
 memcpy(newBuf+aLen, b, bLen);
 newBuf[len] = 0;
 return newBuf;
 }
 
-/* fill a specified area of memory with zeroes */
-void zeroBytes(void *vpt, int count)
-{
-char *pt = (char*)vpt;
-while (--count>=0)
-    *pt++=0;
-}
-
 /* Reverse the order of the bytes. */
 void reverseBytes(char *bytes, long length)
 {
 long halfLen = (length>>1);
 char *end = bytes+length;
 char c;
 while (--halfLen >= 0)
     {
     c = *bytes;
     *bytes++ = *--end;
     *end = c;
     }
 }
 
 void reverseInts(int *a, int length)