diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-08-18 01:46:27 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-08-18 01:46:27 +0000 |
commit | 92fc50b496ee8a5d0a0fc2025283e66351ae03d4 (patch) | |
tree | c3cd7d87bee1dbf66ba0584e939ab3c506fc8082 /tools/build/cross-build/include | |
parent | b0ce7dfc5e28650980d52f45aadd79e10012c291 (diff) | |
download | src-92fc50b496ee8a5d0a0fc2025283e66351ae03d4.tar.gz src-92fc50b496ee8a5d0a0fc2025283e66351ae03d4.zip |
sys: Extract __bitcount* from sys/types.h to new sys/bitcount.h
This will allow the code to be reused by the cross-build sys/types.h
wrapper in order to provide the APIs for greater compatibility. This
also provides a path towards eventually removing the definitions from
sys/types.h altogether if so desired by gradually migrating users to
including sys/bitcount.h explicitly, but that is not the primary goal
here.
Note that the copyright header is a direct copu of sys/types.h's given
that's where this code comes from. This could be replaced in future with
a more specific one restricted to just the code in question, depending
on what the copyright for that code is.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D36132
Diffstat (limited to 'tools/build/cross-build/include')
0 files changed, 0 insertions, 0 deletions