number << shift; number >> shift; ~ number number & number number | number number ^ number
<<, >> return the first argument with a left or right bitshift operation performed the number of times of the second argument.
~ returns the binary opposite of the number.
& compares each of the corresponding digits of the two numbers. If both digits are 1, returns 1 for that place. Otherwise returns 0 for that place.
| compares each of the corresponding digits of the two numbers. If either those digits is 1, returns 1 for that place. Otherwise returns 0 for that place.
^ compares each of the corresponding digits of the two numbers. If both digits are the same, returns O for that place. If they are different (ie. 0 and 1) returns 1 for that place.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.