From a18b1c30dc6ffb2b726d70e901057909e5815d1f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 3 Sep 2015 17:11:59 +0200 Subject: remove some todos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/string/memcpy.c | 1 - src/string/memmove.c | 1 - src/string/memset.c | 1 - src/string/strlen.c | 1 - 4 files changed, 4 deletions(-) (limited to 'src/string') diff --git a/src/string/memcpy.c b/src/string/memcpy.c index 02479cd..54482fb 100644 --- a/src/string/memcpy.c +++ b/src/string/memcpy.c @@ -32,7 +32,6 @@ */ void* memcpy(void* restrict whither, const void* restrict whence, size_t size) { - /* TODO improve implementation of memcpy */ char* d = whither; char* s = whence; while (size--) diff --git a/src/string/memmove.c b/src/string/memmove.c index c721609..0acc47b 100644 --- a/src/string/memmove.c +++ b/src/string/memmove.c @@ -29,7 +29,6 @@ */ void* memmove(void* whither, const void* whence, size_t size) { - /* TODO improve implementation of memcpy */ char* d = whither; const char* s = whence; if ((size_t)(d - s) < size) diff --git a/src/string/memset.c b/src/string/memset.c index f8c153a..df36052 100644 --- a/src/string/memset.c +++ b/src/string/memset.c @@ -29,7 +29,6 @@ */ void* memset(void* segment, int c, size_t size) { - /* TODO improve implementation of memset */ char* s = segment; while (size--) *s++ = (char)c; diff --git a/src/string/strlen.c b/src/string/strlen.c index a7aece5..449fff0 100644 --- a/src/string/strlen.c +++ b/src/string/strlen.c @@ -31,7 +31,6 @@ */ size_t strlen(const char* str) { - /* TODO optimise strlen */ char* s = str; while (*str++); return (size_t)(s - 1 - str); -- cgit v1.2.3-70-g09d2