4 #define BIN_MAX_NUM MAX_NUM/NUM_BINS 8 #define ARRAY_SIZE 36000 9 #define OPS_PER_ACCEL ARRAY_SIZE/NUM_ACCELS 17 int temp0 = 0, temp1 = 0, temp2 = 0, temp3 = 0, temp4 = 0, temp5 = 0;
19 for (i = 0; i < max_idx; i++)
49 printf(
"%d\n", temp0);
87 printf (
"Result: %d\n", main_result);
88 if (main_result == NUM_BINS)
90 printf(
"RESULT: PASS\n");
95 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]