B.7 Bitwise Operations: Member Functions

Team-Fly

B.7 Bitwise Operations: Member Functions

 const LINT& operator ^= (const LINT& b); 

XOR and assignment, a ^= b;

 const LINT& operator |= (const LINT& b); 

OR and assignment, a |= b;

 const LINT& operator &= (const LINT& b); 

AND and assignment, a &= b;

 const LINT& operator <<= (const int i); 

left shift and assignment, a <<= i;

 const LINT& operator >>= (const int i); 

right shift and assignment, a <<= i;

 const LINT& shift (const int i); 

shift (left and right) by i bit positions, a.shift (i);

 const LINT& setbit (const unsigned int i); 

set a bit at position i, a.setbit (i);

 const LINT& clearbit (const      unsigned int i); 

clear a bit at position i, a.clearbit (i);

 const int testbit (const      unsigned int i) const; 

test a bit at position i, a.testbit (i);


Team-Fly


Cryptography in C and C++
Cryptography in C and C++
ISBN: 189311595X
EAN: 2147483647
Year: 2001
Pages: 127

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net