This file contains hidden or 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
| #ifndef HEAP_H | |
| #define HEAP_H | |
| /* | |
| * D-ary heap implementation. Among all D candidates, D=2 performs the best :) | |
| * Sorry C++ programmers in advanced, I never realized that I'm reinventing the wheel :( | |
| */ | |
| #include <stddef.h> | |
| #include <stdint.h> |
This file contains hidden or 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
| #define _AMD64_ | |
| /* | |
| Problem: Because I'm using a constant reading size | |
| using a constant buffer, there will be a | |
| case where we input too much, and it spills | |
| to the next buffer read, which is not good! | |
| I'll fix it later... or not :) | |
| */ |
This file contains hidden or 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
| #!/bin/bash | |
| function err { | |
| echo "$1" | |
| exit -1 | |
| } | |
| function getbinpath { | |
| local BINNAME="$1" | |
| local BINNAMELEN=${#BINNAME} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.