Jump to content

Toggle bit in vector


hotwires

Recommended Posts

You can set or reset a bit in number (Under Logic).

You can also Test a bit, and decide to either set or reset it (in order to do a toggle), or:

Set a bit in the number 0, take the result and XOR it with the number you want to toggle the bit in. The result is the toggle bit result that you expect.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.