4 #define BIN_MAX_NUM MAX_NUM/NUM_BINS 5 #define ARRAY_SIZE 36000 6 #define OPS_PER_ACCEL ARRAY_SIZE/NUM_ACCELS 14 int temp0 = 0, temp1 = 0, temp2 = 0, temp3 = 0, temp4 = 0, temp5 = 0;
16 for (i = 0; i < max_idx; i++)
40 printf(
"%d\n", temp0);
77 printf (
"Result: %d\n", main_result);
78 if (main_result == NUM_BINS)
80 printf(
"RESULT: PASS\n");
85 printf(
"RESULT: FAIL\n");
void histogram(int *input, int *output, int max_idx)
int expected_array[NUM_BINS]
volatile int output[DIM_Y][DIM_X]
int output_array[NUM_BINS]
int input_array[ARRAY_SIZE]
int output_array_accel[NUM_BINS *NUM_ACCELS]