- Adopted by:
- DBigInt
- Declared in:
- DBitArithmetic.h
Protocol Description
The DBitArithmetic protocol specifies methods for classes that can perform
bit arithmetic: and, or, xor, lshift, rshift and complement.
- Last modified:
- 31-Oct-2007 (DBitArithmetic.h)
Method Index
- - (id <DBitArithmetic>) and :(id <DBitArithmetic>) other
- And with another object
- Parameters:
- other - the other object
- Returns:
- the object
- - (id <DBitArithmetic>) and :(id <DBitArithmetic>) src1 :(id <DBitArithmetic>) src2
- And two objects and store the result in this object
- Parameters:
- src1 - the first object
src2 - the second object
- Returns:
- the object
- - (id <DBitArithmetic>) com
- One's complement the object
- Returns:
- the object
- - (id <DBitArithmetic>) lshift :(unsigned long) shifts
- Left shift the object
- Parameters:
- shifts - the number of shifts
- Returns:
- the object
- - (id <DBitArithmetic>) lshift :(id <DBitArithmetic>) src :(unsigned long) shifts
- Left shift an object and store the result in this object
- Parameters:
- src - the object to be shifted
shifts - the number of shifts
- Returns:
- the object
- - (id <DBitArithmetic>) or :(id <DBitArithmetic>) other
- Or with another object
- Parameters:
- other - the other object
- Returns:
- the object
- - (id <DBitArithmetic>) or :(id <DBitArithmetic>) src1 :(id <DBitArithmetic>) src2
- Or two objects and store the result in this object
- Parameters:
- src1 - the first object
src2 - the second object
- Returns:
- the object
- - (id <DBitArithmetic>) rshift :(unsigned long) shifts
- Right shift the object
- Parameters:
- shifts - the number of shifts
- Returns:
- the object
- - (id <DBitArithmetic>) rshift :(id <DBitArithmetic>) src :(unsigned long) shifts
- Right shift an object and store the result in this object
- Parameters:
- src - the number to be shifted
shifts - the number of shifts
- Returns:
- the object
- - (id <DBitArithmetic>) xor :(id <DBitArithmetic>) other
- Xor with another object
- Parameters:
- other - the other object
- Returns:
- the object
- - (id <DBitArithmetic>) xor :(id <DBitArithmetic>) src1 :(id <DBitArithmetic>) src2
- Xor two objects and store the result in this object
- Parameters:
- src1 - the first object
src2 - the second object
- Returns:
- the object
generated 05-Nov-2007 by ObjcDoc 3.0.0