Method BigMul
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
BigMul(long, long, out long)
Produces the full product of two signed 64-bit numbers (生成两个有符号 64 位数的完整乘积).
public static long BigMul(long a, long b, out long low)
Parameters
a
longThe first number to multiply (要相乘的第一个数).
b
longThe second number to multiply (要相乘的第二个数).
low
longWhen this method returns, contains the low 64-bit of the product of the specified numbers (此方法返回时,包含指定数字乘积的低 64 位).
Returns
- long
The high 64-bit of the product of the specified numbers (指定数字乘积的高 64 位).
- See Also
BigMul(ulong, ulong, out ulong)
Produces the full product of two unsigned 64-bit numbers (生成两个无符号 64 位数的完整乘积).
[CLSCompliant(false)]
public static ulong BigMul(ulong a, ulong b, out ulong low)
Parameters
a
ulongThe first number to multiply (要相乘的第一个数).
b
ulongThe second number to multiply (要相乘的第二个数).
low
ulongWhen this method returns, contains the low 64-bit of the product of the specified numbers (此方法返回时,包含指定数字乘积的低 64 位).
Returns
- ulong
The high 64-bit of the product of the specified numbers (指定数字乘积的高 64 位).
- See Also
BigMul(ulong, ulong)
Produces the full product of two unsigned 64-bit numbers.
[CLSCompliant(false)]
public static ExUInt128 BigMul(ulong a, ulong b)
Parameters
Returns
- ExUInt128
The full product of the specified numbers.