Re:All elementary functions from a single binary operator
by drdeca on Monday April 13, 2026 @12:13PM
(#47754225)
Different sense of “branching”
Re:All elementary functions from a single binary operator
by gus_massa on Monday April 13, 2026 @12:30PM
(#47754500)
Yep.
Re:All elementary functions from a single binary operator
by lugao on Tuesday April 14, 2026 @05:46AM
(#47763373)
Well, the paper explicitly takes the principal branch to solve this.
So it isn't exploiting the branching for computation.
Re:All elementary functions from a single binary operator
by gus_massa on Tuesday April 14, 2026 @01:13PM
(#47768366)
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)
They use the complex version of logarithm, that has a lot of branching problems.