freebsd-nq/lib/libc/mips
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
..
gdtoa Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
gen Replace a proliferation of buggy MD implementations of modf() with a 2011-10-21 06:40:36 +00:00
net Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
softfloat Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
string Merge index() and strchr() together. 2012-01-03 07:14:01 +00:00
sys use PTR_WORD for __curbrk and minbrk instead of .word, the new version 2010-06-25 05:36:36 +00:00
_fpmath.h Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
arith.h Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
gd_qnan.h Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
Makefile.inc Merge jmallett@'s n64 work into HEAD - changeset 2 2010-06-16 14:13:36 +00:00
Symbol.map Replace a proliferation of buggy MD implementations of modf() with a 2011-10-21 06:40:36 +00:00
SYS.h Fix PIC_RETURN when abicalls are not defined. 2010-10-24 05:22:07 +00:00