// inner_product_asm.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();
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_prod;		// to store inner product

main()
{
  inner_prod = inprod_asm_func(x,y,N);	// call inner_prod function
  printf("<x,y> = %d (decimal) \n", inner_prod); // print result
}


