Skip to content

stdx 0.1.2

Choose a tag to compare

@c4milo c4milo released this 16 Nov 23:27
· 16 commits to main since this release

A PATCH release (decision 65): no public name, parameter or size changed, and every encoder writes the octets 0.1.1 wrote.

Changes since 0.1.1

  • The base64 decoder keeps its options as whole octets (847345c). Zig 0.16 stores a field narrower than an octet at its own width but loads it as an octet, and LLVM forwards no such store to a load. A decode with a nonzero option, such as pad_bits at .drop, then read its options from memory. Where a caller inlines the decode, the options now fold to constants (decision 68). Instructions a decode of 128 octets, .refuse then .drop, callgrind, ReleaseFast:

    CPU 0.1.1 0.1.2
    aarch64 934, 950 934, 933
    x86-64-v2 1,406, 1,407 1,403, 1,395
    x86-64-v3 880, 883 880, 873
  • The pin of pepegrillo, the build tooling, moves to 10841b3 (f498f46). The library does not import it.

One fine point: base64.Accept, base64.Padding and base64.PadBits now have a u8 tag, so @intFromEnum of one gives a u8.