News for hackers. Stuff that matters.
Re:Packing a string of digits into an integer quickly by n2d4 on Saturday July 08, 2023 @07:36PM (#36649838)
It doesn't distinguish, the non-digit character index is hardcoded into the bitmask (note the missing f in the second hex literal):

  part1 = _pext_u64(part1, 0x0f0f0f0f0f0f0f0f);
  part2 = _pext_u64(part2, 0x0f000f0f0f0f0f0f);
You are right that if you were to use a space in an unexpected position, the code wouldn't work.

There are no comments on this comment yet.