// inner_product_asm_opt.c 
// Calculates the inner product of two vectors 

#include <stdio.h>   // for printf
#define N 4  	// # of data in each nx1 vector
extern short inprod_asm_func_opt();
short x[N] = {1,2,3,4};	// define elements in 1st vector
short y[N] = {0,2,4,6}; // define elements in 2nd vector
short inner_product;

main()
{
  inner_product = inprod_asm_func_opt(x,y,N); // call inner_prod function
  printf("<x,y> = %d (decimal) \n", inner_product); 	// print result
}


