Class DivideOp
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.ProcedureN
gnu.kawa.functions.ArithOp
gnu.kawa.functions.DivideOp
- All Implemented Interfaces:
Named
Implement the Scheme standard function "/".
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpstatic final DivideOpFields 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
Methods inherited from class ArithOp
defaultResult, isSideEffectFreeMethods inherited from class ProcedureN
applyToObjectMethods inherited from class Procedure
apply0, apply1, 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
-
SLASH
-
idiv
-
iceil
-
floorQuotient
-
quotient
-
remainder
-
modulo
-
div
-
mod
-
div0
-
mod0
-
-
Constructor Details
-
DivideOp
-
-
Method Details
-
getRoundingMode
public int getRoundingMode()Return one of FLOOR, CEILING, TRUNCATE, ROUND, or 0 if not applicable. These are defined in gnu.math.Numeric. -
applyN
-
apply2
-
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.
-