<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/libkern/ffsdi2.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-01-31T17:20:50Z</updated>
<entry>
<title>libkern: Add libcalls for ffs and __ffsdi2</title>
<updated>2026-01-31T17:20:50Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-01-31T17:20:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4c822dd4a15c533c08271b2286da949fffafc89e'/>
<id>urn:sha1:4c822dd4a15c533c08271b2286da949fffafc89e</id>
<content type='text'>
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
</content>
</entry>
</feed>
