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
FieldsModifier and TypeFieldDescriptionstatic final ShortOpThe short bitwise "and" binary operation.static final ShortOpThe short maximum binary operation.static final ShortOpThe short minimum binary operation.static final ShortOpThe short bitwise "or" binary operation.static final ShortOpThe short product binary operation.static final ShortOpThe short sum binary operation.static final ShortOpThe short bitwise "exclusive or" binary operation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract shortop(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:
- (
xopy), where op stands for this binary operation.
-