Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
gjye
· 3y ago · 0 comments
std::bit_cast is constexpr. I'd defer the switch case generation to the compiler though:
https://godbolt.org/z/oaWvGzWcn
Seems to do the trick with the bunch of cmp/je in the generated asm.
Comments
No comments yet.
Better HN