Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 584 Bytes
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
extern uint64_t asm_compute(uint64_t n1, uint64_t n2, uint64_t n3);
int main(int argc, char* argv[]) {
if (argc < 4) {
printf("Not enough arguments.\nUsage: %s [n1] [n2] [n3]\n", argv[0]);
return EXIT_FAILURE;
}
int64_t n1 = strtoull(argv[1], NULL, 10);
int64_t n2 = strtoull(argv[2], NULL, 10);
int64_t n3 = strtoull(argv[3], NULL, 10);
int64_t result = asm_compute(n1, n2, n3);
printf("asm_compute(%lld, %lld, %lld) = %lld\n", n1, n2, n3, result);
return EXIT_SUCCESS;
}
You can’t perform that action at this time.