Skip to content

Commit

Permalink
8249612: Remove unused ISNANF and ISNAND from jdk_util_md.h
Browse files Browse the repository at this point in the history
Reviewed-by: darcy
  • Loading branch information
Alexander Scherbatiy committed Jul 23, 2020
1 parent 2f8653f commit 993b1b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
22 changes: 1 addition & 21 deletions src/java.base/unix/native/libjava/jdk_util_md.h
Expand Up @@ -23,24 +23,4 @@
* questions.
*/

#ifndef JDK_UTIL_MD_H
#define JDK_UTIL_MD_H

// checking for nanness
#if defined(MACOSX)
#include <math.h>
#define ISNANF(f) isnan(f)
#define ISNAND(d) isnan(d)
#elif defined(__linux__) || defined(_ALLBSD_SOURCE)
#include <math.h>
#define ISNANF(f) isnanf(f)
#define ISNAND(d) isnan(d)
#elif defined(_AIX)
#include <math.h>
#define ISNANF(f) _isnanf(f)
#define ISNAND(d) _isnan(d)
#else
#error "missing platform-specific definition here"
#endif

#endif /* JDK_UTIL_MD_H */
// Currently, there are no unix specific functions defined.
7 changes: 1 addition & 6 deletions src/java.base/windows/native/libjava/jdk_util_md.h
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -28,11 +28,6 @@
#define JDK_UTIL_MD_H

#include "jni.h"
#include <float.h>

// checking for nanness
#define ISNANF(f) _isnan(f)
#define ISNAND(d) _isnan(d)

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 993b1b0

Please sign in to comment.