-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* author: UncP | ||
* date: 2019-11-02 | ||
* license: BSD-3 | ||
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* author: UncP | ||
* date: 2019-11-02 | ||
* license: BSD-3 | ||
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* author: UncP | ||
* date: 2019-11-02 | ||
* license: BSD-3 | ||
**/ | ||
|
||
#include <stdint.h> | ||
|
||
#include "hot_node.h" | ||
|
||
#define node_header \ | ||
uint64_t type:3; \ | ||
uint64_t height:3; \ | ||
uint64_t n_keys:6; \ | ||
uint64_t locked:1; \ | ||
uint64_t unused:51; | ||
|
||
typedef struct hot_node_s_8 | ||
{ | ||
node_header; | ||
uint8_t keys[32]; | ||
void *childs[32]; | ||
}hot_node_s_8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* author: UncP | ||
* date: 2019-11-02 | ||
* license: BSD-3 | ||
**/ | ||
|
||
#ifndef _hot_node_h_ | ||
#define _hot_node_h_ | ||
|
||
typedef struct hot_node hot_node; | ||
|
||
|
||
#endif /* _hot_node_h_ */ |