summaryrefslogtreecommitdiff
path: root/lib/libc/arm/string
Commit message (Collapse)AuthorAgeFilesLines
* arm/ffs.S: remove stale comment.Pedro F. Giffuni2019-12-281-3/+0
| | | | | | | | | We already use the CLZ instruction. Discussed with: andrew Notes: svn path=/head/; revision=356141
* Revert r336773: it removed too much.Warner Losh2018-07-272-0/+1792
| | | | | | | | | | r336773 removed all things xscale. However, some things xscale are really armv5. Revert that entirely. A more modest removal will follow. Noticed by: andrew@ Notes: svn path=/head/; revision=336783
* Remove xscale supportWarner Losh2018-07-272-1792/+0
| | | | | | | | | | | | | The OLD XSCALE stuff hasn't been useful in a while. The original committer (cognet@) was the only one that had boards for it. He's blessed this removal. Newer XSCALE (GUMSTIX) is for hardware that's quite old. After discussion on arm@, it was clear there was no support for keeping it. Differential Review: https://reviews.freebsd.org/D16313 Notes: svn path=/head/; revision=336773
* Correct MDSRCS use in <arch>/string/Makefile.inc.Brooks Davis2017-03-021-4/+11
| | | | | | | | | | | | | | | | - Remove .c files which duplicate entries in MISRCS. - Use the same, less merge conflict prone style in all cases. - Use MDSRCS for mips (.c and .S files both ended up in SRCS). - Remove pointless sparc64 Makefile.inc. - Remove uninformative foreign VCS ID entries. Reviewed by: emaste, imp, jhb MFC after: 1 week Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9841 Notes: svn path=/head/; revision=314556
* Annotate arm userspace assembler sources stating their tolerance toKonstantin Belousov2015-09-299-0/+18
| | | | | | | | | | the non-executable stack. Reviewed by: andrew Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=288373
* Add the needed if-then instructions to build as Thumb-2.Andrew Turner2015-05-316-0/+53
| | | | Notes: svn path=/head/; revision=283831
* Switch to the ARM unified assembly language as the clang integrated as onlyAndrew Turner2014-11-297-123/+138
| | | | | | | | | | supports it. Binutils supports it when the ".syntax unified" directive is set. Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=275256
* In ARM asm code, ensure that every ENTRY(foo) has a matching END(foo).Ian Lepore2014-08-319-0/+17
| | | | | | | | | | | | The EABI unwind info requires a .fnend for every .fnstart, and newer binutils will complain about seeing two .fnstart in a row. This change allows newer tools to compile our code. Reported by: bapt Reviewed by: imp Notes: svn path=/head/; revision=270882
* Merge index() and strchr() together.Ed Schouten2012-01-031-4/+3
| | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=229368
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-023-21/+0
| | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204607
* - Eliminate extra subcs instruction. I have not noticed before that weStanislav Sedov2009-06-211-2/+1
| | | | | | | | always perform substraction now, so no instruction could be rordered to eliminate the conditional substraction. Notes: svn path=/head/; revision=194585
* - Fix strncmp on arm. Return 0 as result without performing theStanislav Sedov2009-06-211-5/+9
| | | | | | | | | | | main cycle only if the len passed is equal to 0. If end address overflows use last possible address as the end address. Based on: discussion on arm@ MFC after: 1 month Notes: svn path=/head/; revision=194583
* revert r191633; this breaks at91 & xscale (likely all arm)Sam Leffler2009-05-061-4/+4
| | | | Notes: svn path=/head/; revision=191836
* Change the test at the beginning of strncmp(), from being if (len - 1) < 0Olivier Houchard2009-04-281-4/+4
| | | | | | | | | | | | to if (len == 0). The length is supposed to be unsigned, so len - 1 < 0 won't happen except if len == 0 anyway, and it would return 0 when it shouldn't, if len was > INT_MAX. Spotted out by: Channa <channa kad gmail com> Notes: svn path=/head/; revision=191633
* MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd areOlivier Houchard2007-10-133-9/+9
| | | | | | | | | available, use _ARM_ARCH_5/_ARM_ARCH_5E instead. MFC After: 3 days Notes: svn path=/head/; revision=172616
* Fix a long line in copyright notice.Olivier Houchard2005-10-031-1/+2
| | | | | | | Pointed out by: Gavin Atkinson gavin.atkinson ury york ac uk Notes: svn path=/head/; revision=150877
* Add an asm version of strlen() for arm (how useful).Olivier Houchard2005-10-032-1/+78
| | | | Notes: svn path=/head/; revision=150875
* Use the RET macro.Olivier Houchard2004-11-096-31/+31
| | | | | | | | For setjmp() and longjmp(), put the signal mask where it's supposed to be, instead of in the space reserved for fp regs. Notes: svn path=/head/; revision=137464
* MFKernel: Implement ffs with clz on Xscale.Olivier Houchard2004-11-071-0/+6
| | | | Notes: svn path=/head/; revision=137343
* Always use bx for returning on Xscale.Olivier Houchard2004-09-231-76/+76
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=135683
* Fix the align-to-32-bits code.Olivier Houchard2004-09-231-2/+2
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=135682
* Import the FreeBSD/arm libc bits.Olivier Houchard2004-05-1412-0/+3363
Obtained from: NetBSD Notes: svn path=/head/; revision=129202