PULSAR  1.0.0
Parallel Ultra Light Systolic Array Runtime
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Go to the documentation of this file.
15 #ifndef PRT_TUPLE_H
16 #define PRT_TUPLE_H
18 #include "prt.h"
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
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);
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)
41 #ifdef __cplusplus
42 }
43 #endif
45 #endif /* PRT_TUPLE_H */
void prt_tuple_print(int *tuple)
tuple print
Definition: prt_tuple.c:172
int * prt_tuple_cat(int *first_tuple,...)
tuple concatenate Join a variable length, NULL-terminated, list of tuples.
Definition: prt_tuple.c:64
int prt_tuple_compare(void *tuple_a, void *tuple_b)
tuple comparison
Definition: prt_tuple.c:135
unsigned int prt_tuple_hash(void *tuple)
tuple hash Required by the VSA's tuples hash table. Computes the lenght in characters and calls a str...
Definition: prt_tuple.c:188
int prt_tuple_len(int *tuple)
tuple length
Definition: prt_tuple.c:47
int * prt_tuple_copy(int *in_tuple)
tuple copy constructor
Definition: prt_tuple.c:109
void prt_tuple_delete(int *tuple)
tuple destructor
Definition: prt_tuple.c:95
int * prt_tuple_new(int len,...)
tuple constructor Allocates memory for the tuple plus the termination symbol (INT_MAX).
Definition: prt_tuple.c:25
int prt_tuple_equal(void *tuple_a, void *tuple_b)
tuple equality check Check if tuples are identical in length and content.
Definition: prt_tuple.c:161