mirror of
https://github.com/Ed94/perfaware.git
synced 2026-10-14 09:59:40 -07:00
boostrap duffle (not compiled, unverified)
This commit is contained in:
1 parent
31f81ec8e3
commit
f49fcbe510
9 files changed
+830
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#ifdef INTELLISENSE_DIRECTIVES
|
||||
# pragma once
|
||||
# include "dsl.h"
|
||||
#endif
|
||||
|
||||
#pragma region Encoding
|
||||
FI_ void u64_to_hex(U8 val, char* buf, S4 chars) {
|
||||
static const char hex_chars[] = "0123456789ABCDEF";
|
||||
for(S1 i = chars - 1; i >= 0; --i) { buf[i] = hex_chars[val & 0xF]; val >>= 4; }
|
||||
}
|
||||
#pragma endregion Encoding
|
||||
Reference in new issue
Block a user