Table of Contents

Method BigMul

Namespace
Zyl.VectorTraits
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 long

The first number to multiply (要相乘的第一个数).

b long

The second number to multiply (要相乘的第二个数).

low long

When 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 ulong

The first number to multiply (要相乘的第一个数).

b ulong

The second number to multiply (要相乘的第二个数).

low ulong

When 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