PandA-2024.02
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "support.h"
Go to the source code of this file.
Data Structures | |
struct | bench_args_t |
Macros | |
#define | TYPE int32_t |
#define | TYPE_MAX INT32_MAX |
#define | SIZE 2048 |
#define | NUMOFBLOCKS 512 |
#define | ELEMENTSPERBLOCK 4 |
#define | RADIXSIZE 4 |
#define | BUCKETSIZE NUMOFBLOCKS*RADIXSIZE |
#define | MASK 0x3 |
#define | SCAN_BLOCK 16 |
#define | SCAN_RADIX BUCKETSIZE/SCAN_BLOCK |
Functions | |
void | ss_sort (int a[SIZE], int b[SIZE], int bucket[BUCKETSIZE], int sum[SCAN_RADIX]) |
#define BUCKETSIZE NUMOFBLOCKS*RADIXSIZE |
#define ELEMENTSPERBLOCK 4 |
#define SCAN_BLOCK 16 |
Definition at line 24 of file sort.h.
Referenced by last_step_scan(), local_scan(), and sum_scan().
#define SCAN_RADIX BUCKETSIZE/SCAN_BLOCK |
Definition at line 25 of file sort.h.
Referenced by last_step_scan(), local_scan(), and sum_scan().
void ss_sort | ( | int | a[SIZE], |
int | b[SIZE], | ||
int | bucket[BUCKETSIZE], | ||
int | sum[SCAN_RADIX] | ||
) |
Definition at line 78 of file sort.c.
References BUFFER_A, BUFFER_B, exp, hist(), init(), last_step_scan(), local_scan(), sum, sum_scan(), and update().
Referenced by run_benchmark().