ck_pr_btc_32(3)
atomic bit test-and-complement operations
Other Alias
ck_pr_btc_ptr, ck_pr_btc_uint, ck_pr_btc_int, ck_pr_btc_64, ck_pr_btc_16
LIBRARY
Concurrency Kit (libck, -lck)
SYNOPSIS
In ck_pr.h
Ft bool
Fn ck_pr_btc_ptr void *target unsigned int bit_index
Ft bool
Fn ck_pr_btc_uint uint *target unsigned int bit_index
Ft bool
Fn ck_pr_btc_int int *target unsigned int bit_index
Ft bool
Fn ck_pr_btc_64 uint64_t *target unsigned int bit_index
Ft bool
Fn ck_pr_btc_32 uint32_t *target unsigned int bit_index
Ft bool
Fn ck_pr_btc_16 uint16_t *target unsigned int bit_index
DESCRIPTION
The
Fn ck_pr_btc 3
family of functions atomically fetch the value
of the bit in
Fa target
at index
Fa bit_index
and set that bit to its complement.
RETURN VALUES
These family of functions return the original value of
the bit at offset
Fa bit_index
that is in the value pointed to by
Fa target .