blob: c572115114be0601d54403f0390f0cdfe8744349 [file] [log] [blame]
/*
* ======== isqrt-prog/prog.c ========
*/
#include <acme/utils/Bench.h>
#include <charlie/sqrtlib/isqrt.h>
#include <xdc/runtime/System.h>
int main()
{
unsigned int x, y;
x = 1000;
System_printf("==> isqrt(%d)\n", x);
Bench_begin("cycle count:");
y = isqrt(x);
Bench_end();
System_printf("<== %d\n", y);
return 0;
}