Mercurial > repos > rhope
diff runtime/array.c @ 104:2d2da148d844
Performance improvement for string comparisons
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 25 Aug 2010 03:19:57 +0000 |
parents | 7428aa5d6ade |
children | 439db471f595 |
line wrap: on
line diff
--- a/runtime/array.c Wed Aug 11 03:13:28 2010 -0400 +++ b/runtime/array.c Wed Aug 25 03:19:57 2010 +0000 @@ -170,4 +170,8 @@ release_ref((object *)bp); } +int32_t _internal_memcmp_offset(void * left, int32_t loff, void * right, int32_t roff, int32_t len) +{ + return memcmp(((char *)left)+loff, ((char *)right)+roff, len); +}