64 int i, c = Values.Length;
71 if (d < long.MinValue || d > ulong.MaxValue || d != Math.Truncate(d))
76 Result = (ulong)((
long)d);
83 return 0xffffffffffffffff;
86 for (i = 1; i < c; i++)
89 if (d < long.MinValue || d > ulong.MaxValue || d != Math.Truncate(d))
94 Result = (ulong)(((
long)Result) & ((
long)Result));
105 return 0xffffffffffffffff;
111 if (Result >
long.MaxValue)
114 return ~(long)Result;
139 int i, c = Values.Length;
144 for (i = 0; i < c; i++)
Script runtime exception.
Class managing a script expression.
override IElement EvaluateVector(DoubleVector Argument, Variables Variables)
Evaluates the function on a vector argument.
static bool CalcNand(bool[] Values, ScriptNode Node)
Calculates the logical NAND of all boolean-valued elements.
override IElement EvaluateVector(IVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override string FunctionName
Name of the function
static double CalcNand(double[] Values, ScriptNode Node)
Calculates the binary NAND of all double-valued elements. Values must be integers.
override IElement EvaluateVector(BooleanVector Argument, Variables Variables)
Evaluates the function on a vector argument.
Nand(ScriptNode Argument, int Start, int Length, Expression Expression)
Nand(v)
ScriptNode Argument
Function argument.
Base class for funcions of one vector variable.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
Basic interface for all types of elements.
Basic interface for vectors.