svn commit: r275468 - head/sys/dev/usb/controller

Dag-Erling Smørgrav des at des.no
Thu Dec 4 18:28:38 UTC 2014


John-Mark Gurney <jmg at funkthat.com> writes:
> Did you see the comment about usig __builtin_ffs{,l,ll} instead? this
> seems to be a better route...

No.  It's needlessly compiler-dependent.

> So, how about changing libkern.h to define the various ones to the
> built in, and dropping all the special versions?

This is (or should) be taken care of in cpufunc.h for platforms that
support ffs / fls in hardware.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-head mailing list