Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8252250: isnanf is obsolete
Reviewed-by: vkempik
Backport-of: b957d80
  • Loading branch information
Aleksei Voitylov authored and Vladimir Kempik committed Mar 10, 2022
1 parent 8e01531 commit 49f9105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/globalDefinitions_gcc.hpp
Expand Up @@ -204,7 +204,7 @@ inline int g_isnan(double f) { return isnand(f); }
#elif defined(__APPLE__)
inline int g_isnan(double f) { return isnan(f); }
#elif defined(LINUX) || defined(_ALLBSD_SOURCE)
inline int g_isnan(float f) { return isnanf(f); }
inline int g_isnan(float f) { return isnan(f); }
inline int g_isnan(double f) { return isnan(f); }
#else
#error "missing platform-specific definition here"
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/unix/native/libjava/jdk_util_md.h
Expand Up @@ -37,7 +37,7 @@
#define ISNAND(d) isnan(d)
#elif defined(__linux__) || defined(_ALLBSD_SOURCE)
#include <math.h>
#define ISNANF(f) isnanf(f)
#define ISNANF(f) isnan(f)
#define ISNAND(d) isnan(d)
#elif defined(_AIX)
#include <math.h>
Expand Down

1 comment on commit 49f9105

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.