8285868: x86 intrinsics for floating point method isInfinite

Reviewed-by: kvn, jbhateja
This commit is contained in:
vamsi-parasa 2022-06-02 17:42:42 +00:00 committed by Jatin Bhateja
parent 13596cdf69
commit 7f44f572ea
18 changed files with 513 additions and 0 deletions

View file

@ -754,6 +754,7 @@ public final class Double extends Number
* @return {@code true} if the value of the argument is positive
* infinity or negative infinity; {@code false} otherwise.
*/
@IntrinsicCandidate
public static boolean isInfinite(double v) {
return (v == POSITIVE_INFINITY) || (v == NEGATIVE_INFINITY);
}