summaryrefslogtreecommitdiffstats
path: root/libc/string/i386
Commit message (Collapse)AuthorAgeFilesLines
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-186-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-183-4/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc/string/i386/string.h: fix -O0 build failureDenys Vlasenko2009-07-211-0/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* relocate i386 string.h to i386-specific dirMike Frysinger2009-07-201-0/+316
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libc/string/i386/memset.c: memset 1 byte at a time is a bit grossDenis Vlasenko2009-04-231-9/+56
|
* libc/string/i386/rawmemchr.c: i386 version, adapted from strlen()Denis Vlasenko2008-12-202-9/+33
| | | | | | | | | libc/string/i386/strlen.c: small optimization, same code size) text data bss dec hex filename - 240449 1759 11960 254168 3e0d8 lib/libuClibc-0.9.30-svn.so + 240339 1759 11960 254058 3e06a lib/libuClibc-0.9.30-svn.so
* string/i386/strncpy.c: fixlet for testing codeDenis Vlasenko2008-12-202-1/+48
| | | | | | | | | string/i386/strchrnul.c: new function, adapted from strchr.c text data bss dec hex filename - 240604 1759 11960 254323 3e173 lib/libuClibc-0.9.30-svn.so + 240449 1759 11960 254168 3e0d8 lib/libuClibc-0.9.30-svn.so
* string/i386/strncpy: faster i386 version (same code size), testing codeDenis Vlasenko2008-12-206-28/+47
| | | | | string/i386/*: formatiing and commentary tidying up
* strchr: a bit faster version for i386 (same code size)Denis Vlasenko2008-12-191-15/+17
|
* memmove: smaller one for i386, with added testing, and withDenis Vlasenko2008-12-191-20/+32
| | | | | | | | | added check for src == dest. run tested. text data bss dec hex filename - 39 0 0 39 27 libc/string/i386/memmove.os + 37 0 0 37 25 libc/string/i386/memmove.os
* strncat: shorter version for i386, add small embedded testDenis Vlasenko2008-12-194-55/+106
| | | | | | | | | | | | memchr: add small embedded test strnlen: make small embedded test easier to use strncmp: reformat assembly to make it readable, no code changes (verified with objdump) text data bss dec hex filename - 46 0 0 46 2e libc/string/i386/strncat.os + 39 0 0 39 27 libc/string/i386/strncat.os
* string/i386: smaller, and hopefully easier to read, strnlen().Denis Vlasenko2008-12-191-16/+31
| | | | | | | text data bss dec hex filename - 25 0 0 25 19 libc/string/i386/strnlen.os + 24 0 0 24 18 libc/string/i386/strnlen.os
* since gcc -Os hates us and does not inline string ops,Denis Vlasenko2008-12-174-3/+4
| | | | | | | | | | implement inline versions of some of them. Enable only those which result roughly in the same code size as using out-or-line versions. None of this affects users, installed headers won't have any trace of it.
* memchr: smaller i386 versionDenis Vlasenko2008-12-172-26/+34
| | | | | | | | | | | strrchr: smaller i386 version text data bss dec hex filename - 33 0 0 33 21 libc/string/i386/memchr.o + 28 0 0 28 1c libc/string/i386/memchr.o - 31 0 0 31 1f libc/string/i386/strrchr.o + 26 0 0 26 1a libc/string/i386/strrchr.o
* smaller memcpyDenis Vlasenko2008-12-091-14/+15
| | | | | | | text data bss dec hex filename - 39 0 0 39 27 libc/string/i386/memcpy.os + 35 0 0 35 23 libc/string/i386/memcpy.os
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-1/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-1914-15/+15
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* Qunying Pan writes: Make strncmp weak hidden to fix link failures in ↵Mike Frysinger2006-05-301-1/+1
| | | | building gdb and binutils statically
* Add new option for SuSv3 legacy functions and use it for ↵Peter S. Mazinger2006-03-232-0/+4
| | | | bcopy/bzero/bcmp/index/rindex
* Mark some functions as GNU, provide missing hidden memmem, remove ↵Peter S. Mazinger2006-03-221-0/+2
| | | | _ISOC99/XOPEN_SOURCE
* unify duplicated code cause i get tired of updating this stuffMike Frysinger2006-02-032-27/+3
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* make gcc4 happy w/ hidden_def/proto, correct some typosPeter S. Mazinger2006-01-151-1/+1
|
* make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger2006-01-1414-14/+14
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-1414-48/+47
| | | | missing headers, other jump relocs removed
* Use strong_alias everywhere instead of .global/.set. Correct some cases ↵Peter S. Mazinger2006-01-0314-35/+20
| | | | where the non-hidden version was used.
* Use hidden_strong_alias for alias(__x,__y), do not use recursive aliasesPeter S. Mazinger2005-12-081-2/+2
|
* Remove TOPDIRPeter S. Mazinger2005-11-211-3/+1
|
* Corrections to splitted filesPeter S. Mazinger2005-11-1414-15/+17
|
* Split up string.c, make internals hiddenPeter S. Mazinger2005-11-1116-347/+772
|
* Remove #define _STDIO_UTILITY, can't find any use of itPeter S. Mazinger2005-11-081-1/+0
|
* Disable multi build on asm files. i386/powerpc could be used if the source ↵Peter S. Mazinger2005-11-071-3/+4
| | | | is splitted up
* Only because of multi sources I had to touch up these and add code duplicationPeter S. Mazinger2005-11-011-1/+4
|
* Replace all Makefiles for new build infrastucturePeter S. Mazinger2005-10-291-34/+8
|
* Renamed arch specific Makefile.in to Makefile.arch, else if TARGET_ARCH does ↵Peter S. Mazinger2005-10-281-1/+0
| | | | not exist, we reinclude the including Makefile. Moved arch/common fpu_control.h link creation into main Makefile.in. Updated the link creation script to remove all the other Makefiles
* All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other ↵Peter S. Mazinger2005-10-251-0/+36
| | | | archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
* Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all ↵Peter S. Mazinger2005-10-121-11/+8
| | | | objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
* fix string functions to not treat the size_t as ssize_tMike Frysinger2005-09-051-6/+13
|
* merge parallel build supportMike Frysinger2005-01-251-5/+4
|
* Add in aliases provided by the non arch specific implementationsEric Andersen2003-11-061-0/+6
|
* The curse of cut-n-pasteEric Andersen2003-11-061-6/+1
|
* Add some initial x86 string optimizations. These make no attempt to use niftyEric Andersen2003-11-062-0/+366
things like mmx/3dnow/etc. These are not inline, and will therefore not be as fast as modifying the headers to use inlines (and cannot therefore do tricky things when dealing with const memory). But they should (I hope!) be faster than their generic equivalents.... More importantly, these should provide a good example for others to follow when adding arch specific optimizations. -Erik