PandA-2024.02
Macros | Functions | Variables
dotproduct.c File Reference
#include <stdio.h>
#include "dotproduct.h"
Include dependency graph for dotproduct.c:

Go to the source code of this file.

Macros

#define ARRAY_SIZE   6000
 
#define NUMS_OF_ACCEL   8
 
#define OPS_PER_ACCEL   ARRAY_SIZE/NUMS_OF_ACCEL
 

Functions

int product (int *inputA, int *inputB, int startidx, int maxidx)
 
int main ()
 

Variables

int result_array [NUMS_OF_ACCEL]
 

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE   6000

Definition at line 8 of file dotproduct.c.

◆ NUMS_OF_ACCEL

#define NUMS_OF_ACCEL   8

Definition at line 9 of file dotproduct.c.

Referenced by main().

◆ OPS_PER_ACCEL

#define OPS_PER_ACCEL   ARRAY_SIZE/NUMS_OF_ACCEL

Definition at line 10 of file dotproduct.c.

Referenced by main(), and product().

Function Documentation

◆ main()

int main ( void  )

Definition at line 28 of file dotproduct.c.

References A_array, B_array, NUMS_OF_ACCEL, OPS_PER_ACCEL, product(), result, and result_array.

Here is the call graph for this function:

◆ product()

int product ( int *  inputA,
int *  inputB,
int  startidx,
int  maxidx 
)

Definition at line 18 of file dotproduct.c.

References OPS_PER_ACCEL, and result.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ result_array

int result_array[NUMS_OF_ACCEL]

Definition at line 15 of file dotproduct.c.

Referenced by main().


Generated on Mon Feb 12 2024 13:03:11 for PandA-2024.02 by doxygen 1.8.13