-
Notifications
You must be signed in to change notification settings - Fork 0
/
Node.h
32 lines (25 loc) · 615 Bytes
/
Node.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Created by wmespindula on 28/10/2021.
//
#ifndef LOCALITY_STUDY_NODE_H
#define LOCALITY_STUDY_NODE_H
#ifndef ITEMS_PER_BLOCK
#define ITEMS_PER_BLOCK 8
#endif
typedef struct ArrayNode {
double array[ITEMS_PER_BLOCK];
struct ArrayNode *next;
struct ArrayNode *prev;
u_int8_t usedSlots;
} ArrayNode;
typedef struct Node {
double data;
bool isValid;
// Classic Specific Implementation Vars
struct Node *pPrevNode;
struct Node *pNextNode;
// Unrolled Specific Implementation Vars
ArrayNode *currArrayNode;
u_int8_t pos;
} Node;
#endif //LOCALITY_STUDY_NODE_H