Skip to content

Commit

Permalink
8331108: Unused Math.abs call in java.lang.FdLibm.Expm1#compute
Browse files Browse the repository at this point in the history
Reviewed-by: naoto, bpb, rgiulietti
  • Loading branch information
jddarcy committed Apr 28, 2024
1 parent 16c7dcd commit 4e5c25e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/java.base/share/classes/java/lang/FdLibm.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -3005,7 +3005,6 @@ static double compute(double x) {

hx = __HI(x); // high word of x
xsb = hx & SIGN_BIT; // sign bit of x
y = Math.abs(x);
hx &= EXP_SIGNIF_BITS; // high word of |x|

// filter out huge and non-finite argument
Expand Down

0 comments on commit 4e5c25e

Please sign in to comment.