ctLessThan

fnuint ctLessThan(T)(T a, T b) if (is(T == ubyte) || is(T == ushort) || is(T == uint) || is(T == ulong)) pure nothrow @nogc @safe

Compares two unsigned integers in constant time, returning 1 if a < b.

The comparison is performed using arithmetic operations that do not branch based on the input values.

Parameters

aFirst value.
bSecond value.

Returns

1 if a < b, 0 otherwise.