Skip to content

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);

Success

Returns true when lhs <= rhs.

Failure

Returns false otherwise.

Usage example (Cross-references)

Usage examples (Cross-references)
        }
    
        while (IntLE(&low, &high)) {
            Int sum     = IntInit(IntAllocator(root));
            Int mid     = IntInit(IntAllocator(root));
    
        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