Cryptography Reference
In-Depth Information
const LINT&
setbit (unsigned int i);
set a bit at position i , a.setbit (i);
const LINT&
shift (int i);
by i bit
shift
(left
and
right)
positions, a.shift (i);
const int
testbit (unsigned int i) const;
test a bit at position i , a.testbit (i);
B.8 Bitwise Operations: Friend Functions
const LINT
operator & (const LINT& a,
const LINT& b);
AND, c=a&b;
const LINT
operator ˆ (const LINT& a,
const LINT& b);
XOR, c=a ˆ b;
const LINT
operator | (const LINT& a,
const LINT& b);
OR, c=a|b;
const LINT
operator << (const LINT& a,
int i);
left shift, b=a<<i;
const LINT
operator >> (const LINT& a,
int i);
right shift, b=a>>i;
const LINT
shift (const LINT& a, int i);
shift (left and right) by i bit
positions, b = shift (a, i);
 
Search WWH ::




Custom Search