Package edu.rit.pj.reduction
Class IntegerOp
java.lang.Object
edu.rit.pj.reduction.Op
edu.rit.pj.reduction.IntegerOp
Class IntegerOp is the abstract base class for a binary operation on integer
values, used to do reduction in a parallel program.
- Version:
- 24-Nov-2009
- Author:
- Alan Kaminsky
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IntegerOp
The integer bitwise "and" binary operation.static final IntegerOp
The integer maximum binary operation.static final IntegerOp
The integer minimum binary operation.static final IntegerOp
The integer bitwise "or" binary operation.static final IntegerOp
The integer product binary operation.static final IntegerOp
The integer sum binary operation.static final IntegerOp
The integer bitwise "exclusive or" binary operation. -
Constructor Summary
-
Method Summary
-
Field Details
-
SUM
The integer sum binary operation. -
PRODUCT
The integer product binary operation. -
MINIMUM
The integer minimum binary operation. -
MAXIMUM
The integer maximum binary operation. -
AND
The integer bitwise "and" binary operation. -
OR
The integer bitwise "or" binary operation. -
XOR
The integer bitwise "exclusive or" binary operation.
-
-
Constructor Details
-
IntegerOp
protected IntegerOp()Construct a new integer binary operation.
-
-
Method Details
-
op
public abstract int op(int x, int y) Perform this binary operation.- Parameters:
x
- First argument.y
- Second argument.- Returns:
- (
x
opy
), where op stands for this binary operation.
-