HomeFreeBSD

Implement __test_and_clear_bit() and __test_and_set_bit() in the LinuxKPI.

Description

Implement test_and_clear_bit() and test_and_set_bit() in the LinuxKPI.

The clang compiler will optimise these functions down to three AMD64
instructions if the bit argument is a constant during compilation.

MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS314135: MFC r313799:
Branches
Unknown
Tags
Unknown