diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-07-17 01:44:36 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-07-17 01:44:36 +0000 |
commit | ed2eaae820570da6428c6141f7eb4a6d8011ddda (patch) | |
tree | a4080524b43a1a25a261a98d1dd789d9ee575d68 /ldso | |
parent | 1c3d156a919cfb234753a392ae84b4e302f36b03 (diff) |
Fix missing function when USE_CACHE is enabled
-Erik
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/boot1.c | 16 | ||||
-rw-r--r-- | ldso/ldso/ldso.c | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ldso/ldso/boot1.c b/ldso/ldso/boot1.c index cbf6b1aae..4a3dbcea8 100644 --- a/ldso/ldso/boot1.c +++ b/ldso/ldso/boot1.c @@ -1223,6 +1223,22 @@ void * _dl_memcpy(void * dst, const void * src, size_t len) return dst; } +#ifdef USE_CACHE +int _dl_memcmp(const void * s1,const void * s2,size_t len) +{ + unsigned char *c1 = (unsigned char *)s1; + unsigned char *c2 = (unsigned char *)s2; + + while (len--) { + if (*c1 != *c2) + return *c1 - *c2; + c1++; + c2++; + } + return 0; +} +#endif + void * _dl_memset(void * str,int c,size_t len) { register char *a = str; diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index cbf6b1aae..4a3dbcea8 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -1223,6 +1223,22 @@ void * _dl_memcpy(void * dst, const void * src, size_t len) return dst; } +#ifdef USE_CACHE +int _dl_memcmp(const void * s1,const void * s2,size_t len) +{ + unsigned char *c1 = (unsigned char *)s1; + unsigned char *c2 = (unsigned char *)s2; + + while (len--) { + if (*c1 != *c2) + return *c1 - *c2; + c1++; + c2++; + } + return 0; +} +#endif + void * _dl_memset(void * str,int c,size_t len) { register char *a = str; |