28.2.11 __builtin_btg_32
Architecture
dsPIC33A, dsPIC33C/E/F, dsPIC30
Description
Toggle bit.
Prototype
void __builtin_btg_32(volatile uint32_t *v, const int bit);
Arguments
v
- pointer to source / destination value
bit
- bit number to toggle
Return Value
Modifies the value in place, toggling the bit specified by
bit
.
Machine Instruction
btg
Error Messages
If bit
is literal and out of range: Invalid range for
second argument to __builtin_btg
If bit
is an expected reference to a member and we cannot
determine the bit position: Unexpected second argument to
__builtin_btg
If v
does not refer to a correctly typed object:
Invalid pointer type, must be a pointer to char, int, or long