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