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