public abstract class ArithOp extends ProcedureN
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static int |
ASHIFT_GENERAL |
static int |
ASHIFT_LEFT |
static int |
ASHIFT_RIGHT |
static int |
DIVIDE_GENERIC
Implement's Scheme
/ operation. |
static int |
DIVIDE_INEXACT
Implements a division operation.
|
static int |
IOR |
static int |
LSHIFT_RIGHT |
static int |
MODULO
Implements a modulo/remainder operation.
|
static int |
NOT |
static int |
QUOTIENT
Implements a quotient operation.
|
static int |
QUOTIENT_EXACT
Implements a quotient operation.
|
static int |
XOR |
applyToObject, noArgs
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
nameKey
Constructor and Description |
---|
ArithOp(java.lang.String name,
int op) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
defaultResult() |
boolean |
isSideEffectFree()
True if this Procedure (definitely) has no side-effects.
|
applyToObject
apply0, apply1, apply2, apply3, apply4, applyL, applyN, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public static final int DIVIDE_GENERIC
/
operation.public static final int DIVIDE_INEXACT
(exact->inexact (/ x y))
.public static final int QUOTIENT
getRoundingMode()
.
Operands are real; result is an integer.
Inexact operands yield inexact integer result.public static final int QUOTIENT_EXACT
getRoundingMode()
.
Operands and result are real.
Operands are real; result is an integer.
Inexact operands yield exact integer result.public static final int MODULO
getRoundingMode()
.
Operands and result are real.public static final int ASHIFT_GENERAL
public static final int ASHIFT_LEFT
public static final int ASHIFT_RIGHT
public static final int LSHIFT_RIGHT
public static final int AND
public static final int IOR
public static final int XOR
public static final int NOT
public java.lang.Object defaultResult()
public boolean isSideEffectFree()
Procedure
isSideEffectFree
in class Procedure