8294198: Implement isFinite intrinsic for RISC-V

Reviewed-by: fyang, kvn
This commit is contained in:
Aleksei Voitylov 2022-09-29 18:51:38 +00:00 committed by Vladimir Kozlov
parent 5f6ad926d7
commit aeef3ecdc4
17 changed files with 316 additions and 48 deletions

View file

@ -782,6 +782,7 @@ public final class Double extends Number
* floating-point value, {@code false} otherwise.
* @since 1.8
*/
@IntrinsicCandidate
public static boolean isFinite(double d) {
return Math.abs(d) <= Double.MAX_VALUE;
}