IntSquare
IntSquare
Description
Square an integer.
Parameters
| Name | Direction | Description |
|---|---|---|
result |
out | Destination for the square |
value |
in | Value to square |
Usage example (from documentation)
IntSquare(&square, &value);Usage example (Cross-references)
Usage examples (Cross-references)
- In
Int.c:871:
}
void IntSquare(Int *result, Int *value) {
IntMul(result, value, value);
}- In
Int.c:907:
Int next = IntInit();
IntSquare(&next, ¤t);
IntDeinit(¤t);
current = next;- In
Int.Math.c:261:
bool test_int_square(void) {
WriteFmt("Testing IntSquare\n");
Int value = IntFrom(12345);- In
Int.Math.c:266:
Int result_value = IntInit();
IntSquare(&result_value, &value);
bool result = IntToU64(&result_value) == 152399025;
Last updated on