functions supported

This commit is contained in:
GabrielKoppenstein committed 2021-08-28 15:04:08 +02:00
1 parent e3111cfe73
commit dfbf100be2
3 files changed
+89 -65

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#pragma once
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
#define BYTE_TO_BINARY(byte) \
(byte & 0x80 ? '1' : '0'), \
(byte & 0x40 ? '1' : '0'), \
(byte & 0x20 ? '1' : '0'), \
(byte & 0x10 ? '1' : '0'), \
(byte & 0x08 ? '1' : '0'), \
(byte & 0x04 ? '1' : '0'), \
(byte & 0x02 ? '1' : '0'), \
(byte & 0x01 ? '1' : '0')