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

Go to the source code of this file.

Macros

#define NUM_ACCELS   8
 
#define MAX_NUM   100
 
#define NUM_BINS   5
 
#define BIN_MAX_NUM   MAX_NUM/NUM_BINS
 
#define ARRAY_SIZE   36000
 
#define OPS_PER_ACCEL   ARRAY_SIZE/NUM_ACCELS
 

Functions

void histogram (int *input, int *output, int max_idx)
 
int main ()
 

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE   36000

Definition at line 8 of file histogram.c.

◆ BIN_MAX_NUM

#define BIN_MAX_NUM   MAX_NUM/NUM_BINS

Definition at line 4 of file histogram.c.

Referenced by histogram().

◆ MAX_NUM

#define MAX_NUM   100

Definition at line 2 of file histogram.c.

◆ NUM_ACCELS

#define NUM_ACCELS   8

Definition at line 1 of file histogram.c.

Referenced by main().

◆ NUM_BINS

#define NUM_BINS   5

Definition at line 3 of file histogram.c.

Referenced by main().

◆ OPS_PER_ACCEL

#define OPS_PER_ACCEL   ARRAY_SIZE/NUM_ACCELS

Definition at line 9 of file histogram.c.

Referenced by main().

Function Documentation

◆ histogram()

void histogram ( int *  input,
int *  output,
int  max_idx 
)

Definition at line 14 of file histogram.c.

References BIN_MAX_NUM.

◆ main()

int main ( void  )

Definition at line 58 of file histogram.c.

References expected_array, histogram(), input_array, main_result, NUM_ACCELS, NUM_BINS, OPS_PER_ACCEL, output_array, and output_array_accel.

Here is the call graph for this function:

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