Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 18 Jan 2022 10:04:35 -0500
From: Rich Felker <>
To: Damian McGuckin <>
Subject: Re: cproj.c in 1.2.2

On Tue, Jan 18, 2022 at 08:46:25PM +1100, Damian McGuckin wrote:
> In the event that 'z' is mapped to the unit sphere, the code says
> 	CMPLX(INFINITY, copysign(0.0, creal(z)))
> Isn't the definition
> 	CMPLX(INFINITY, copysign(0.0, cimag(z)))
> Or am I wrong?
> Ditto for cprojf.c and cprojl.c.

I don't think you're wrong and I'm pretty sure this was just a mistake
in the original writing of the complex code. I'll fix it.


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.