Skip to content

UInt16Extensions.DidSubtractionHalfBorrow Method ​

Definition ​

Determines whether a subtraction produced a half borrow, that is, a borrow from bit 12 to bit 11.

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

View source

Parameters ​

NameTypeDescription
valueUInt16
leftUInt16The left operand.
rightUInt16The right operand.

Returns ​

Boolean

true if the subtraction produced a half borrow; false otherwise.