summaryrefslogtreecommitdiffstats
path: root/src/include/strings.h
Commit message (Collapse)AuthorAgeFilesLines
* [libc] Add ffs(), ffsl(), and ffsll()Michael Brown2015-03-161-4/+77
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown2015-03-021-1/+1
| | | | | | | Relicense files for which I am the sole author (as identified by util/relicense.pl). Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Rewrite string functionsMichael Brown2015-02-171-7/+55
| | | | | | | | | | | | Some of the C library string functions have an unknown provenance. Reimplement all such functions to avoid potential licensing uncertainty. Remove the inline-assembler versions of strlen(), memswap(), and strncmp(); these save a minimal amount of space (around 40 bytes in total) and are not performance-critical. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Add flsll()Michael Brown2014-04-271-4/+11
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Add inline assembly implementation of flsl() using BSR instructionMichael Brown2014-04-241-2/+2
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-181-0/+2
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* Add fls() for non-constant values.Michael Brown2007-09-211-5/+1Star
|
* 4.3BSD says that bcopy and bzero are defined in strings.h, not string.hMichael Brown2007-01-191-0/+11
|
* The prototype for strcasecmp() is apparently in strings.h.Michael Brown2006-08-091-0/+2
|
* Add __constant_flsl(), because it's useful for finding out the nextMichael Brown2006-04-251-0/+54
power-of-two up from a given constant via ( 1 << fls ( constant - 1 ) ) fls(), flsl(), ffs() and ffsl() appear in strings.h according to POSIX.