opnsense-src/lib/libc/arm/string
Ed Schouten 46632c18bd Merge index() and strchr() together.
As I looked through the C library, I noticed the FreeBSD MIPS port has a
hand-written version of index(). This is nice, if it weren't for the
fact that most applications call strchr() instead.

Also, on the other architectures index() and strchr() are identical,
meaning we have two identical pieces of code in the C library and
statically linked applications.

Solve this by naming the actual file strchr.[cS] and let it use
__strong_reference()/STRONG_ALIAS() to provide the index() routine. Do
the same for rindex()/strrchr().

This seems to make the C libraries and static binaries slightly smaller,
but this reduction in size seems negligible.
2012-01-03 07:14:01 +00:00
..
bcopy.S Import the FreeBSD/arm libc bits. 2004-05-14 12:04:31 +00:00
bzero.S The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 22:16:40 +00:00
ffs.S MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd are 2007-10-13 12:06:31 +00:00
Makefile.inc Merge index() and strchr() together. 2012-01-03 07:14:01 +00:00
memcmp.S Use the RET macro. 2004-11-09 16:49:14 +00:00
memcpy.S MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd are 2007-10-13 12:06:31 +00:00
memcpy_arm.S The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 22:16:40 +00:00
memcpy_xscale.S Always use bx for returning on Xscale. 2004-09-23 23:11:32 +00:00
memmove.S The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 22:16:40 +00:00
memset.S MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd are 2007-10-13 12:06:31 +00:00
strcmp.S Use the RET macro. 2004-11-09 16:49:14 +00:00
strlen.S Fix a long line in copyright notice. 2005-10-03 14:43:27 +00:00
strncmp.S - Eliminate extra subcs instruction. I have not noticed before that we 2009-06-21 13:15:56 +00:00