summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/memset.c
Commit message (Collapse)AuthorAgeFilesLines
* * libc/string/memccpy.c (memccpy): Fix warning about signed-unsignedCorinna Vinschen2014-10-091-1/+1
| | | | | | | | | | | | | | | comparison * libc/string/memchr.c (memchr): Ditto. * libc/string/memrchr.c (memrchr): Ditto. * libc/string/memset.c: (memset): Ditto. * libc/string/rawmemchr.c (rawmemchr): Ditto. * libc/string/local.h (__locale_cjk_lang): Fix "function declaration isn't a prototype" warning. * libc/string/strcasestr.c (strcasestr): Ditto. * libc/string/u_strerr.c (_user_strerror): Fix "unused parameter" warnings. * libc/string/rawmemchr.c (rawmemchr): Fix comment type "// ..." -> "/* ... */".
* 2013-12-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2013-12-101-0/+2
| | | | | | | | | | | | * acconfig.h: Add _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL. * newlib.hin: Ditto. * configure: Regenerate. * configure.in: Add setting of _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL. * libc/string/local.h: Add check for _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL and set __inhibit_loop_to_libcall macro appropriately. * libc/string/memmove.c: Use __inhibit_loop_to_libcall macro in function declaration. * libc/string/memset.c: Ditto.
* 2008-05-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-05-271-1/+1
| | | | | * libc/string/memset.c: Fix documented prototype to remove erroneous const attribute on first parameter.
* 2008-05-26 Eric Blake <ebb9@byu.net>Jeff Johnston2008-05-261-29/+22
| | | | | | | | | Optimize the generic and x86 memset. * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]: Pre-align pointer so unaligned stores aren't penalized. * libc/machine/i386/memset.S (memset): [!__OPTIMIZE_SIZE__]: Pre-align pointer so unaligned stores aren't penalized. Prefer 8-byte over 4-byte alignment. Reduce register pressure.
* * libc/string/memset.c (memset): Fix comment.Christopher Faylor2002-11-271-4/+2
|
* * libc/string/memset.c (memset): Move initialization of 'd' earlier inChristopher Faylor2002-11-261-1/+1
| | | | function.
* * libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,Christopher Faylor2002-11-251-1/+1
| | | | introduced below, everywhere.
* * libc/string/memset.c (memset): Make it safe even ifKazu Hirata2002-11-251-4/+6
| | | | sizeof (int) = 2.
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-241-2/+1
| | | | | | | | | | | | | * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's used later (ifdef __SCLE) * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's used later (ifdef MB_CAPABLE) * libc/string/memset.c (memset): removed unused variables "count" and "unaligned_addr" * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE) * libc/unix/getpwent.c (getpwnam): removed unused variables "uid" and "gid"
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+110