Skip to content

Conversation

SandaruKasa
Copy link

@SandaruKasa SandaruKasa commented Jun 15, 2024

The codegen seems to be OK: https://godbolt.org/z/da5Psn1s9

  • Just as good (noop) on -O1 & above.
  • Even smaller (and with just 1 memset instead of 3 memcpy's) on -O0.

Bonus point: no need for unsafe (because, as everyone knows, unsafe=bad, Rust=good, hehe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant