OpenCores
URL https://opencores.org/ocsvn/heap_sorter/heap_sorter/trunk

Subversion Repositories heap_sorter

[/] [heap_sorter/] [trunk/] [HLS_implementation/] [Fig6/] [wz_hsort.h] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 wzab
typedef struct{
2
  short unsigned int key;
3
  char payload[4];
4
} sort_data;
5
 
6
#define klt(v1,v2) ((v1-v2) & 0x8000)
7
#define kle(v1,v2) (((v2-v1) & 0x8000)==0)
8
 
9
#define NM 11
10
#define SORT_LEN (1<<NM)
11
#define MAX_DEL (SORT_LEN)
12
#define TEST_LEN (MAX_DEL*100)
13
extern sort_data sort_mem[NM][SORT_LEN];
14
sort_data heap_sort (sort_data val);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.