# isHex, isAlphanumeric: prong reorder · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0162a0868c18dc94f8d89c0c95bd89ebd63c0b41)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0162a0868c18dc94f8d89c0c95bd89ebd63c0b41

Requested commit: 0162a0868c18dc94f8d89c0c95bd89ebd63c0b41

Commit: 0162a0868c18dc94f8d89c0c95bd89ebd63c0b41

Tree: e7aebbb1833c0792e66f06042c28372c72084272

Author: r00ster91

Committer: r00ster91

## Message

```
isHex, isAlphanumeric: prong reorder

On x86 interestingly I can see a reduction in codesize by 1 instruction with this.
While not necessarily faster, it might still reduce codesize a bit and this ordering is also more logical
because it follows ASCII table order. Rust's std uses this ordering too.
See https://zig.godbolt.org/z/PqodY8YqY for the difference.

```

## Parents

- [19dbc5805c440dbfb22bbd3e75c7ec706655bb19](https://git.cafe/gitcafe/zig/commit/19dbc5805c440dbfb22bbd3e75c7ec706655bb19?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0162a0868c18dc94f8d89c0c95bd89ebd63c0b41?format=markdown)
