@nicolas17.xyzNicolás Alvarez @nicolas17.xyz
2026-11-25 18:53 UTC
I'm not sure why (NaN-boxing?) but the code had something like this, bit-casting a float to an integer: uint64_t handle_sqrt(double x) { double result = sqrt(x); return *(uint64_t*)&result; } LLVM assumed it could tail-call here: jump to sqrt instead of calling it, save a stack frame.
A reply in a thread.
2 likes, 0 reposts, 1 replies
3 Next post4 More from @nicolas17.xyzBackBluesky home