Skip to content

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);

View source

Parameters

Name Type Description
value UInt16
left UInt16 The left operand.
right UInt16 The right operand.

Returns

Boolean

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