From: Nathan McSween <nwmcsween@gmail.com>
To: musl@lists.openwall.com
Cc: Nathan McSween <nwmcsween@gmail.com>
Subject: [PATCH 0/4] Refactor and expand string functions.
Date: Mon, 4 Feb 2013 00:12:11 +0000 [thread overview]
Message-ID: <1359936735-31915-1-git-send-email-nwmcsween@gmail.com> (raw)
memchr - refactor
memcmp - word-at-a-time
memset - refactor
strcmp - word-at-a-time
strlcpy - refactor and always terminate string
strlen - refactor
strncmp - word-at-a-time
A simple wc -l on asm lines for changed files gives:
91 new_memchr.s
106 musl_memchr.s
65 new_memcmp.s
32 musl_memcmp.s
118 new_memset.s
121 musl_memset.s
64 new_strcmp.s
26 musl_strcmp.s
98 new_strlcpy.s
124 musl_strlcpy.s
55 new_strlen.s
55 musl_strlen.s
66 new_strncmp.s
45 musl_strncmp.s
Bikeshed over inline documentation welcome.
Nathan McSween (4):
Internal: Add word.h - word-at-a-time fns / macros
String: refactor to utilize word.h and optimize
String: expand to word-at-a-time
String: refactor to utilize word.h and always terminate string
src/internal/word.h | 39 ++++++++++++++++++++++++++++++++++++
src/string/memchr.c | 42 ++++++++++++++++++++++-----------------
src/string/memcmp.c | 38 +++++++++++++++++++++++++++++++----
src/string/memset.c | 39 +++++++++++++++++++++---------------
src/string/strcmp.c | 35 +++++++++++++++++++++++++++++---
src/string/strlcpy.c | 56 ++++++++++++++++++++++++++++++----------------------
src/string/strlen.c | 29 +++++++++++++++------------
src/string/strncmp.c | 36 ++++++++++++++++++++++++++++-----
8 files changed, 231 insertions(+), 83 deletions(-)
create mode 100644 src/internal/word.h
--
1.7.11.4
next reply other threads:[~2013-02-04 0:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 0:12 Nathan McSween [this message]
2013-02-04 0:12 ` [PATCH 1/4] Internal: Add word.h - word-at-a-time fns / macros Nathan McSween
2013-02-04 0:12 ` [PATCH 2/4] String: refactor to utilize word.h and optimize Nathan McSween
2013-02-04 0:12 ` [PATCH 3/4] String: expand to word-at-a-time Nathan McSween
2013-02-04 2:24 ` Isaac Dunham
2013-02-04 2:55 ` nwmcsween
2013-02-04 0:12 ` [PATCH 4/4] String: refactor to utilize word.h and always terminate string Nathan McSween
2013-02-05 4:25 ` [PATCH 0/4] Refactor and expand string functions Nathan McSween
2013-02-05 11:19 ` Szabolcs Nagy
2013-02-05 14:05 ` Rich Felker
2013-02-05 15:05 ` Szabolcs Nagy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359936735-31915-1-git-send-email-nwmcsween@gmail.com \
--to=nwmcsween@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).