Skip to content

UInt16Extensions.DidAdditionHalfCarry Method ​

Definition ​

Determines whether an addition produced a half carry, that is, a carry from bit 11 to bit 12.

c#
public static bool DidAdditionHalfCarry(this ushort value, ushort left, ushort right);

View source

Parameters ​

NameTypeDescription
valueUInt16
leftUInt16The left operand.
rightUInt16The right operand.

Returns ​

Boolean

true if the addition produced a half carry; false otherwise.