This commit is contained in:
iceman1001 2024-04-22 09:40:50 +02:00
commit 1b45112ad0
3 changed files with 267 additions and 267 deletions

View file

@ -86,7 +86,7 @@ unsigned char hex2bin(unsigned char c) {
// return a single bit from a value
int bitn(uint64_t x, int bit) {
uint64_t bitmask = 1;
bitmask = bitmask << bit;
bitmask <<= bit;
if (x & bitmask) {
return 1;