Skip to content

IntLE

IntLE

Description

Test whether lhs is less than or equal to rhs.

Parameters

Name Direction Description
lhs in Left-hand integer
rhs in Right-hand operand selected through generic dispatch

Usage example (from documentation)

  bool ok = IntLE(&value, 1024u);

Returns

true when lhs <= rhs.

Usage example (Cross-references)

Usage examples (Cross-references)
        IntShiftLeft(&high, high_shift);
    
        while (IntLE(&low, &high)) {
            Int sum     = IntInit();
            Int mid     = IntInit();
    
        bool result = IntLT(&a, &b);
        result      = result && IntLE(&a, &b);
        result      = result && IntGT(&b, &a);
        result      = result && IntGE(&b, &a);
        result      = result && IntEQ(&b, &c);
        result      = result && IntGE(&b, &c);
        result      = result && IntLE(&b, &c);
        result      = result && IntNE(&a, &b);
        result      = result && (IntCompare(&big, UINT64_MAX) > 0);
        result      = result && IntEQ(&value, 42);
        result      = result && IntLE(&value, 42);
        result      = result && IntGT(&value, -1);
        result      = result && IntLT(&value, 100ULL);
Last updated on