logic in Math.nextAfter for handling -0.0 input

Tom Rodriguez tom.rodriguez at oracle.com
Mon Jun 23 22:12:18 UTC 2014


Can you show me your actual test code which failing?

tom

On Jun 23, 2014, at 3:10 PM, Deneau, Tom <tom.deneau at amd.com> wrote:

> Sorry, in the real test code it was not negated…
>  
> -- Tom
>  
>  
> From: Tom Rodriguez [mailto:tom.rodriguez at oracle.com] 
> Sent: Monday, June 23, 2014 5:06 PM
> To: Deneau, Tom
> Cc: graal-dev at openjdk.java.net
> Subject: Re: logic in Math.nextAfter for handling -0.0 input
>  
> Why are you negating NEGATIVE_INFINITY?
>  
> tom
>  
> On Jun 23, 2014, at 2:55 PM, Deneau, Tom <tom.deneau at amd.com> wrote:
> 
> 
>     double direction = (gid & 1) == 0 ? Double.POSITIVE_INFINITY : -Double.NEGATIVE_INFINITY;



More information about the graal-dev mailing list