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

Note: There is no guarantee that a compiler won't optimize this to non-constant time.

And even if it keeps it constant time, a processor may end up running a function like this in non-constant time, due to caching and branch prediction effects.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: