Re: CVS commit: src/lib/libm/complex

2016-12-31 Thread David Holland
On Sat, Dec 31, 2016 at 08:33:04PM +, co...@sdf.org wrote:
 > On Sat, Dec 31, 2016 at 03:33:03PM +, Maya Rashish wrote:
 > > -  w = r + y * I;
 > > +  r = sqrt(x);
 > > +  w = r;
 > >}
 > >}
 > >return w;
 > 
 > I'm an alignment newbie.
 > Could this create alignment issues?
 > Return type is double complex, and r is just double.

It's not a pointer, so it's the compiler's problem.

-- 
David A. Holland
dholl...@netbsd.org


Re: CVS commit: src/lib/libm/complex

2016-12-31 Thread coypu
On Sat, Dec 31, 2016 at 03:33:03PM +, Maya Rashish wrote:
> - w = r + y * I;
> + r = sqrt(x);
> + w = r;
>   }
>   }
>   return w;

I'm an alignment newbie.
Could this create alignment issues?
Return type is double complex, and r is just double.

Thanks.