aboutsummaryrefslogtreecommitdiff
path: root/sys/libkern/ffs.c
Commit message (Collapse)AuthorAgeFilesLines
* libkern: Add libcalls for ffs and __ffsdi2John Baldwin2026-01-311-0/+47
| | | | | | | | | | | | These are needed when compiling a RISC-V kernel with GCC which does not inline __builtin_ffs*. The __ffsdi2 is adapated from the previous ffsl.c. This partially reverts commit f4db342d44198973c1c7b9005d0c5683a582707e. Reviewed by: mhorne Differential Revision: https://reviews.freebsd.org/D54967
* libkern: remove old ffs/fls routinesMitchell Horne2023-07-061-50/+0
| | | | | | | | | These are poorly optimized (linear search), and we now prefer the compiler-provided routines on all platforms. These files can be removed. Reviewed by: emaste, dougm Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40699
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* libkern: ffs, fls: s/4/3/ the 3rd BSD clauseConrad Meyer2015-10-221-1/+1
| | | | | | | | Approved by: emaste Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289766
* Remove advertising clause from University of California Regent'sWarner Losh2004-04-071-4/+0
| | | | | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson Notes: svn path=/head/; revision=128019
* Translate from GNU C to ISO C.Dag-Erling Smørgrav2004-01-141-1/+1
| | | | Notes: svn path=/head/; revision=124514
* Cast to unsigned to avoid sign-extension problems.Dag-Erling Smørgrav2004-01-131-1/+1
| | | | Notes: svn path=/head/; revision=124482
* ANSIfy, de-register, replace VAX reference with actual description.Dag-Erling Smørgrav2004-01-131-6/+5
| | | | Notes: svn path=/head/; revision=124479
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
| | | | Notes: svn path=/head/; revision=116189
* Include sys/libkern.h for the kernel prototypes of these libkern functionsJohn Baldwin2002-08-221-1/+1
| | | | | | | | | | instead of including the userland string.h header. Prompted by: breakage with old string.h from recent machine/types.h fix Approved by: peter (in principle) Notes: svn path=/head/; revision=102281
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Added $Id$David Greenman1994-08-021-4/+2
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+54
Notes: svn path=/head/; revision=1541