Branch: Tag:

2014-09-03

2014-09-03 18:14:04 by Martin Nilsson <nilsson@opera.com>

memcpy is C89 and 4.3BSD

662:       ret = begin_wide_shared_string(orig->len, orig->size_shift);    -  MEMCPY(ret->str, orig->str, orig->len << orig->size_shift); +  memcpy(ret->str, orig->str, orig->len << orig->size_shift);       i = orig->len;   
738:    }       ret=begin_wide_shared_string(orig->len,orig->size_shift); -  MEMCPY(ret->str, orig->str, orig->len << orig->size_shift); +  memcpy(ret->str, orig->str, orig->len << orig->size_shift);       i = orig->len;   
1725: Inside #if (PIKE_BYTEORDER == 4321)
   * FIXME: Future optimization: Check if refcount is == 1,    * and perform sufficient magic to be able to convert in place.    */ -  MEMCPY(out->str, in->str, len); +  memcpy(out->str, in->str, len);   #else    /* Other endianness, may need to do byte-order conversion also. */    {
1904:    * FIXME: Future optimization: Perform sufficient magic    * to do the conversion in place if the ref-count is == 1.    */ -  MEMCPY(out->str, (char *)(str0-len), len*2); +  memcpy(out->str, (char *)(str0-len), len*2);    } else {    /* Reverse endian */