Better HN
topnewbestaskshowjobs
Log inSign up

gjye

1 karma · joined Dec 30, 2022 (3y ago) · 1 submissions

Submissions

comment 3y ago · link · parent

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.