Skip to content

Commit 993b1b0

Browse files
author
Alexander Scherbatiy
committedJul 23, 2020
8249612: Remove unused ISNANF and ISNAND from jdk_util_md.h
Reviewed-by: darcy
1 parent 2f8653f commit 993b1b0

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed
 

‎src/java.base/unix/native/libjava/jdk_util_md.h

+1-21
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,4 @@
2323
* questions.
2424
*/
2525

26-
#ifndef JDK_UTIL_MD_H
27-
#define JDK_UTIL_MD_H
28-
29-
// checking for nanness
30-
#if defined(MACOSX)
31-
#include <math.h>
32-
#define ISNANF(f) isnan(f)
33-
#define ISNAND(d) isnan(d)
34-
#elif defined(__linux__) || defined(_ALLBSD_SOURCE)
35-
#include <math.h>
36-
#define ISNANF(f) isnanf(f)
37-
#define ISNAND(d) isnan(d)
38-
#elif defined(_AIX)
39-
#include <math.h>
40-
#define ISNANF(f) _isnanf(f)
41-
#define ISNAND(d) _isnan(d)
42-
#else
43-
#error "missing platform-specific definition here"
44-
#endif
45-
46-
#endif /* JDK_UTIL_MD_H */
26+
// Currently, there are no unix specific functions defined.

‎src/java.base/windows/native/libjava/jdk_util_md.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,11 +28,6 @@
2828
#define JDK_UTIL_MD_H
2929

3030
#include "jni.h"
31-
#include <float.h>
32-
33-
// checking for nanness
34-
#define ISNANF(f) _isnan(f)
35-
#define ISNAND(d) _isnan(d)
3631

3732
#ifdef __cplusplus
3833
extern "C" {

0 commit comments

Comments
 (0)
Please sign in to comment.