Class BitwiseOp
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.ProcedureN
gnu.kawa.functions.ArithOp
gnu.kawa.functions.BitwiseOp
- All Implemented Interfaces:
Named
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BitwiseOpstatic final BitwiseOpstatic final BitwiseOpstatic final BitwiseOpstatic final BitwiseOpstatic final BitwiseOpstatic final BitwiseOpFields inherited from class ArithOp
AND, ASHIFT_GENERAL, ASHIFT_LEFT, ASHIFT_RIGHT, DIVIDE_GENERIC, DIVIDE_INEXACT, IOR, LSHIFT_RIGHT, MODULO, NOT, QUOTIENT, QUOTIENT_EXACT, XORFields inherited from class ProcedureN
applyToObject, noArgsFields inherited from class Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKeyFields inherited from class PropertySet
nameKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustResult(IntNum value, int code) static intcheckNonNegativeShift(Procedure proc, int amount) intnumArgs()ReturnminArgs()|(maxArgs<<12).static IntNumstatic IntNumshiftRight(IntNum value, int count) Methods inherited from class ArithOp
isSideEffectFreeMethods inherited from class ProcedureN
applyToObjectMethods inherited from class Procedure
apply0, apply3, apply4, applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toStringMethods inherited from class PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Field Details
-
and
-
ior
-
xor
-
ashift
-
ashiftl
-
ashiftr
-
not
-
-
Constructor Details
-
BitwiseOp
-
-
Method Details
-
defaultResult
- Overrides:
defaultResultin classArithOp
-
adjustResult
-
apply1
-
apply2
-
applyN
-
checkNonNegativeShift
-
shiftLeft
-
shiftRight
-
numArgs
public int numArgs()Description copied from class:ProcedureReturnminArgs()|(maxArgs<<12). We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.
-