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)
- In
Int.c:1208:
IntShiftLeft(&high, high_shift);
while (IntLE(&low, &high)) {
Int sum = IntInit();
Int mid = IntInit();- In
Int.Compare.c:36:
bool result = IntLT(&a, &b);
result = result && IntLE(&a, &b);
result = result && IntGT(&b, &a);
result = result && IntGE(&b, &a);- In
Int.Compare.c:41:
result = result && IntEQ(&b, &c);
result = result && IntGE(&b, &c);
result = result && IntLE(&b, &c);
result = result && IntNE(&a, &b);- In
Int.Compare.c:66:
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