mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8285868: x86 intrinsics for floating point method isInfinite
Reviewed-by: kvn, jbhateja
This commit is contained in:
parent
13596cdf69
commit
7f44f572ea
18 changed files with 513 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -575,6 +575,7 @@ public final class Float extends Number
|
|||
* @return {@code true} if the argument is positive infinity or
|
||||
* negative infinity; {@code false} otherwise.
|
||||
*/
|
||||
@IntrinsicCandidate
|
||||
public static boolean isInfinite(float v) {
|
||||
return (v == POSITIVE_INFINITY) || (v == NEGATIVE_INFINITY);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue