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