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

Close. Sign extension. But this is a C puzzle, so I'd get away with "undefined behaviour".


Where does sign extension occur here?


The movslq instruction will sign extend the upper 32 bits.


Right you are! Thanks. I tried to check, but didn't realize my test case had produced a zero bit in that position so didn't expose sign extension.




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

Search: