PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations Macros Groups
prt_tuple.h
Go to the documentation of this file.
1 
15 #ifndef PRT_TUPLE_H
16 #define PRT_TUPLE_H
17 
18 #include "prt.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 int* prt_tuple_new(int len, ...);
25 int prt_tuple_len(int *tuple);
26 int* prt_tuple_cat(int *first_tuple, ...);
27 void prt_tuple_delete(int *tuple);
28 int* prt_tuple_copy(int *in_tuple);
29 int prt_tuple_compare(void *tuple_a, void *tuple_b);
30 int prt_tuple_equal(void *tuple_a, void *tuple_b);
31 void prt_tuple_print(int *tuple);
32 unsigned int prt_tuple_hash(void *tuple);
33 
34 #define prt_tuple_new1(a) prt_tuple_new(1,a)
35 #define prt_tuple_new2(a,b) prt_tuple_new(2,a,b)
36 #define prt_tuple_new3(a,b,c) prt_tuple_new(3,a,b,c)
37 #define prt_tuple_new4(a,b,c,d) prt_tuple_new(4,a,b,c,d)
38 #define prt_tuple_new5(a,b,c,d,e) prt_tuple_new(5,a,b,c,d,e)
39 #define prt_tuple_new6(a,b,c,d,e,f) prt_tuple_new(6,a,b,c,d,e,f)
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* PRT_TUPLE_H */