diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-06-25 05:08:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 05:08:01 (GMT) |
commit | 6dd051101d94b14ff21469b8045c4c26e2a446bd (patch) | |
tree | f1f9238d04c80cb8af220abecf88a9ef78135a34 /src/H5private.h | |
parent | 34f2df48b7e0ae2151462a9835fd7096ef8c2925 (diff) | |
download | hdf5-6dd051101d94b14ff21469b8045c4c26e2a446bd.zip hdf5-6dd051101d94b14ff21469b8045c4c26e2a446bd.tar.gz hdf5-6dd051101d94b14ff21469b8045c4c26e2a446bd.tar.bz2 |
Assume frexpl/f and fabsl/f, which are C99 (#799)
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/H5private.h b/src/H5private.h index 2478c2e..ed17d4c 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -766,12 +766,11 @@ typedef struct { #ifndef HDfabs #define HDfabs(X) fabs(X) #endif /* HDfabs */ -/* use ABS() because fabsf() fabsl() are not common yet. */ #ifndef HDfabsf -#define HDfabsf(X) ABS(X) +#define HDfabsf(X) fabsf(X) #endif /* HDfabsf */ #ifndef HDfabsl -#define HDfabsl(X) ABS(X) +#define HDfabsl(X) fabsl(X) #endif /* HDfabsl */ #ifndef HDfclose #define HDfclose(F) fclose(F) @@ -863,20 +862,11 @@ H5_DLL H5_ATTR_CONST int Nflock(int fd, int operation); #ifndef HDfrexp #define HDfrexp(X, N) frexp(X, N) #endif /* HDfrexp */ -/* Check for Cray-specific 'frexpf()' and 'frexpl()' routines */ #ifndef HDfrexpf -#ifdef H5_HAVE_FREXPF #define HDfrexpf(X, N) frexpf(X, N) -#else /* H5_HAVE_FREXPF */ -#define HDfrexpf(X, N) frexp(X, N) -#endif /* H5_HAVE_FREXPF */ #endif /* HDfrexpf */ #ifndef HDfrexpl -#ifdef H5_HAVE_FREXPL #define HDfrexpl(X, N) frexpl(X, N) -#else /* H5_HAVE_FREXPL */ -#define HDfrexpl(X, N) frexp(X, N) -#endif /* H5_HAVE_FREXPL */ #endif /* HDfrexpl */ /* fscanf() variable arguments */ #ifndef HDfseek |