mailing list of musl libc
 help / color / mirror / code / Atom feed
* [RFC PATCH 0/5] Add explicit_bzero, vectorize and 'normalize' various string functions
@ 2017-07-15 19:55 Nathan McSween
  2017-07-15 19:55 ` [RFC PATCH 1/5] string: vectorize various functions Nathan McSween
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Nathan McSween @ 2017-07-15 19:55 UTC (permalink / raw)
  To: musl; +Cc: Nathan McSween

I have boot tested this with no issues.

Interesting or questionable parts include:
* The return after alignment.
* str[n]casecmp wordwise.
* the new hidden strscpy and memsset function.
* memsset instead of making a standalone explicit_bzero.
* using macros for various gcc attributes, etc.

Nathan McSween (5):
  string: vectorize various functions
  string: modify wordwise functions to match new style
  string: add strscpy and modify functions to use strscpy
  string: use strchrnul in strcasestr instead of bytewise iteration
  string: add memsset a 'secure' memset and bsd explicit_bzero

 src/string/explicit_bzero.c |  9 ++++++++
 src/string/memccpy.c        | 51 ++++++++++++++++++++++++---------------------
 src/string/memchr.c         | 37 ++++++++++++++++++--------------
 src/string/memcmp.c         | 28 +++++++++++++++++++++----
 src/string/memrchr.c        | 29 ++++++++++++++++++++------
 src/string/memsset.c        | 13 ++++++++++++
 src/string/stpcpy.c         | 37 +++++++++++++++++---------------
 src/string/stpncpy.c        | 32 +++++++++-------------------
 src/string/strcasecmp.c     | 34 ++++++++++++++++++++++++++----
 src/string/strcasestr.c     | 12 ++++++++---
 src/string/strchrnul.c      | 33 ++++++++++++++++-------------
 src/string/strcmp.c         | 27 +++++++++++++++++++++---
 src/string/strlcpy.c        | 27 +++---------------------
 src/string/strlen.c         | 27 ++++++++++++++----------
 src/string/strncasecmp.c    | 37 ++++++++++++++++++++++++++++----
 src/string/strncat.c        | 10 ++++-----
 src/string/strncmp.c        | 28 +++++++++++++++++++++++--
 src/string/strscpy.c        | 37 ++++++++++++++++++++++++++++++++
 18 files changed, 348 insertions(+), 160 deletions(-)
 create mode 100644 src/string/explicit_bzero.c
 create mode 100644 src/string/memsset.c
 create mode 100644 src/string/strscpy.c

-- 
2.13.2



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-15 19:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-15 19:55 [RFC PATCH 0/5] Add explicit_bzero, vectorize and 'normalize' various string functions Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 1/5] string: vectorize various functions Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 2/5] string: modify wordwise functions to match new style Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 3/5] string: add strscpy and modify functions to use strscpy Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 4/5] string: use strchrnul in strcasestr instead of bytewise iteration Nathan McSween
2017-07-15 19:55 ` [RFC PATCH 5/5] string: add memsset a 'secure' memset and bsd explicit_bzero Nathan McSween

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).