UInt16Extensions.DidAdditionHalfCarry Method
Definition
Determines whether an addition produced a half carry, i.e. a carry from bit 11 to bit 12.
public static bool DidAdditionHalfCarry(this ushort value, ushort left, ushort right);
Parameters
| Name | Type | Description |
|---|---|---|
| value | UInt16 | |
| left | UInt16 | The left operand. |
| right | UInt16 | The right operand. |
Returns
true if the addition produced a half carry; false otherwise.