Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm just reinterpreting the 64-bit integer as a double-precision floating point number (there are other ways to do this in C, for example using a union).


Java has a type called bytebuffer that might do the trick: http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer...

I don't know how that would get optimized by the jit at runtime though.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: