IntSquare
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Int.c:1275:
}
bool IntSquare(Int *result, const Int *value) {
return int_mul(result, value, value);
}- In
Int.c:1325:
Int next = IntInit(IntAllocator(result));
if (!IntSquare(&next, ¤t)) {
IntDeinit(&acc);
IntDeinit(¤t);- In
Int.Math.c:292:
bool test_int_square(void) {
WriteFmt("Testing IntSquare\n");
DefaultAllocator alloc = DefaultAllocatorInit();- In
Int.Math.c:299:
Int result_value = IntInit(&alloc.base);
IntSquare(&result_value, &value);
bool result = IntToU64(&result_value) == 152399025;
Last updated on