ctEquals

fnuint ctEquals(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.

Parameters

aFirst value.
bSecond value.

Returns

1 if a == b, 0 otherwise.