svn commit: r347484 - head/sys/kern

Doug Moore unkadoug at gmail.com
Sun May 12 01:31:14 UTC 2019


On 5/11/19 5:52 AM, Bruce Evans wrote:
> On Sat, 11 May 2019, Doug Moore wrote:
>> +#ifdef HAVE_INLINE_FFS
>> +    case sizeof(int):
>> +        return (ffs(mask) - 1);
>> +#endif
>
> This is unreachable, since sizeof(int) is 4 on all supported arches, and
> sizeof(mask) is 8 on all arches.
>
Another FreeBSD developer has expressed to me that sizeof(mask) ought to
become 4 on some 32-bit arches before too long, and I added this case in
anticipation of that.  I see now that I should have waited.

Doug Moore




More information about the svn-src-head mailing list