IntLCM
IntLCM
Description
Compute the least common multiple of two integers.
Parameters
| Name | Direction | Description |
|---|---|---|
result |
out | Destination for the LCM |
a |
in | First operand |
b |
in | Second operand |
Usage example (from documentation)
IntLCM(&lcm, &a, &b);Usage example (Cross-references)
Usage examples (Cross-references)
- In
Int.c:1139:
}
void IntLCM(Int *result, Int *a, Int *b) {
ValidateInt(result);
ValidateInt(a);- In
Int.Math.c:436:
bool test_int_lcm(void) {
WriteFmt("Testing IntLCM\n");
Int a = IntFrom(21);- In
Int.Math.c:442:
Int result_value = IntInit();
IntLCM(&result_value, &a, &b);
bool result = IntToU64(&result_value) == 42;
Last updated on