UInt16Extensions.DidSubtractionHalfBorrow Method
Definition
Determines whether a subtraction produced a half borrow, i.e. a borrow from bit 12 to bit 11.
public static bool DidSubtractionHalfBorrow(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 subtraction produced a half borrow; false otherwise.