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

Well, the paper explicitly takes the principal branch to solve this.

So it isn't exploiting the branching for computation.



I agree, as the sibling comment there are two different things that are named "branches". Anyway, to get the principal branch in the microprocessor it's necessary to implement "atan2" that has a lot of special cases.

For example, IIRC ln( -inf.0 + y * i ) = ´+inf.0 + pi * sign(y)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: