Class SandboxInt64Math
Namespace: DotBoxD.Kernels.Sandbox
Assembly: DotBoxD.Kernels.dll
Checked 64-bit integer arithmetic with sandbox error semantics. Overflow is detected with branchless
bit tests for add/subtract and a minimized checked multiply path, so each operation is allocation-free and
inlineable on the compiler’s unboxed fast path and the interpreter alike — mirroring
DotBoxD.Kernels.Sandbox.SandboxInt32Math. Every overflow / divide-by-zero raises the same
DotBoxD.Kernels.Sandbox.SandboxErrorCode.InvalidInput error.
public static class SandboxInt64MathInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”Add(long, long)
Section titled “ Add(long, long)”public static long Add(long left, long right)Parameters
Section titled “Parameters”left long
right long
Returns
Section titled “Returns”Divide(long, long)
Section titled “ Divide(long, long)”public static long Divide(long left, long right)Parameters
Section titled “Parameters”left long
right long
Returns
Section titled “Returns”Multiply(long, long)
Section titled “ Multiply(long, long)”public static long Multiply(long left, long right)Parameters
Section titled “Parameters”left long
right long
Returns
Section titled “Returns”Negate(long)
Section titled “ Negate(long)”public static long Negate(long value)Parameters
Section titled “Parameters”value long
Returns
Section titled “Returns”Remainder(long, long)
Section titled “ Remainder(long, long)”public static long Remainder(long left, long right)Parameters
Section titled “Parameters”left long
right long
Returns
Section titled “Returns”Subtract(long, long)
Section titled “ Subtract(long, long)”public static long Subtract(long left, long right)Parameters
Section titled “Parameters”left long
right long