How do bitwise operations work, and can you write a macro to set, clear, and toggle a specific bit in a register?