Commit Graph

8 Commits

Author SHA1 Message Date
Jeff Johnston 676ae29038 2008-05-27 Jeff Johnston <jjohnstn@redhat.com>
* libc/string/memset.c: Fix documented prototype to remove
        erroneous const attribute on first parameter.
2008-05-27 18:44:40 +00:00
Jeff Johnston a6bd72a278 2008-05-26 Eric Blake <ebb9@byu.net>
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.
2008-05-26 23:23:15 +00:00
Christopher Faylor 46a402e03e * libc/string/memset.c (memset): Fix comment. 2002-11-27 18:10:16 +00:00
Christopher Faylor b3cc01b02b * libc/string/memset.c (memset): Move initialization of 'd' earlier in
function.
2002-11-26 18:11:51 +00:00
Christopher Faylor d90f3dc1ba * libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,
introduced below, everywhere.
2002-11-25 21:11:58 +00:00
Kazu Hirata f24585c6bb * libc/string/memset.c (memset): Make it safe even if
sizeof (int) = 2.
2002-11-25 20:56:17 +00:00
Jeff Johnston 0888fedd86 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
* 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"
2000-08-24 16:25:36 +00:00
Christopher Faylor 8a0efa53e4 import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00