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

I wonder if you could do better; instead of stuffing that bit at the bottom as an int marker, do your best to represent the int faithfully (with higher order nan bits doing their thing) so you optimistically perform the add and issue the add at the same time as you issue the conditional, then by the time the conditional resolves both your float addition and integer addition have come back and you pick the winner with no branching


It's an interesting idea. In practice one must also consider int + double and double + int, so there's four possible paths.




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

Search: