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

Maybe so; I haven't tried. Probably a lot less code depends on unsigned long wrapping at 2⁶⁴ than used to depend on unsigned int wrapping at 2¹⁶, and we got past that. But stability standards were lower then. Any code that runs on both 32-bit and 64-bit LP64 systems can't be too dependent on the exact sizeof long, and sizeof long already isn't sizeof int the way it was on 32-bit platforms.


I'd actually keep it still wrapping at 2^64, with the extra metadata not participating in arithmetic operations...




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

Search: