Follow @Openwall on Twitter for new release announcements and other news
[<prev] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6269d016-ae8b-324c-3819-222b2b3e3aae@esi.com.au>
Date: Fri, 28 Aug 2026 15:43:38 +1000 (AEST)
From: Damian McGuckin <damianm@....com.au>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] math: avoid four-way quadrant branch in
 atan2/atan2f

On Fri, 28 Aug 2026, Alex A wrote:

> How about the cases as a table, keeping the (y,x) notation the file already
> uses:
>  
> /* m: bit 0 is sign(y), bit 1 is sign(x).
>     (+,+)  z                (-,+)  -z
>     (+,-)  pi-(z-pi_lo)     (-,-)  (z-pi_lo)-pi
>   m&2 clear gives +-z, m&2 set gives +-(pi-(z-pi_lo)), sign from y. */
> 
> I'm happy either way if Rich has a preference.

Looks easier to read.

Let's see what Rich says.

Thanks - Damian

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.