Skip to content

Commit

Permalink
fast_strtoull_hex() remove unnecessary operation
Browse files Browse the repository at this point in the history
Both GCC and Clang can find it as unnecessary and optimize out.
There should be no changes to code size.
  • Loading branch information
Explorer09 committed Mar 26, 2024
1 parent 59b30d6 commit 9ec92ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion linux/LinuxProcessTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ static inline uint64_t fast_strtoull_hex(char** str, int maxlen) {
break;
letter = (nibble & 0x40) ? 'A' - '9' - 1 : 0;
nibble &=~0x20; // to upper
nibble ^= 0x10; // switch letters and digits
nibble -= letter;
nibble &= 0x0f;
result <<= 4;
Expand Down

0 comments on commit 9ec92ce

Please sign in to comment.