bitset: Fix __BIT_FFS_AT()'s herald comment

The manual page is correct though.

No functional change.

Reviewed by:    emaste
Approved by:    emaste (mentor)
MFC after:      3 days
Event:          Kitchener-Waterloo Hackathon 202406
Sponsored by:   The FreeBSD Foundation
This commit is contained in:
Olivier Certner 2024-06-03 15:22:12 -04:00
parent e0dcb9b611
commit f3ab0d86e8
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -232,8 +232,9 @@
} while (0)
/*
* Note that `start` and the returned value from __BIT_FFS_AT are
* 1-based bit indices.
* 'start' and 'end' are 0-based bit (runtime) indices. Note that, as for ffs(),
* the returned index is 1-based, 0 being reserved to indicate that no bits are
* set.
*/
#define __BIT_FFS_AT(_s, p, start) __extension__ ({ \
__size_t __i; \