opal/datatype: fix opal_dt_swap_long_double if no IEEE754_H
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
8fd08b933a
Коммит
a111fc8ff2
@ -588,7 +588,7 @@ AC_CACHE_SAVE
|
|||||||
opal_show_title "Header file tests"
|
opal_show_title "Header file tests"
|
||||||
|
|
||||||
AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h \
|
AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h \
|
||||||
dlfcn.h endian.h execinfo.h err.h fcntl.h grp.h ieee754 libgen.h \
|
dlfcn.h endian.h execinfo.h err.h fcntl.h grp.h libgen.h \
|
||||||
libutil.h memory.h netdb.h netinet/in.h netinet/tcp.h \
|
libutil.h memory.h netdb.h netinet/in.h netinet/tcp.h \
|
||||||
poll.h pthread.h pty.h pwd.h sched.h \
|
poll.h pthread.h pty.h pwd.h sched.h \
|
||||||
strings.h stropts.h linux/ethtool.h linux/sockios.h \
|
strings.h stropts.h linux/ethtool.h linux/sockios.h \
|
||||||
@ -599,7 +599,7 @@ AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h \
|
|||||||
sys/types.h sys/uio.h sys/un.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \
|
sys/types.h sys/uio.h sys/un.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \
|
||||||
termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
|
termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
|
||||||
ifaddrs.h crt_externs.h regex.h mntent.h paths.h \
|
ifaddrs.h crt_externs.h regex.h mntent.h paths.h \
|
||||||
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h zlib.h])
|
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h zlib.h ieee754.h])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/mount.h], [], [],
|
AC_CHECK_HEADERS([sys/mount.h], [], [],
|
||||||
[AC_INCLUDES_DEFAULT
|
[AC_INCLUDES_DEFAULT
|
||||||
|
@ -89,6 +89,7 @@ struct bit80 {
|
|||||||
static inline void
|
static inline void
|
||||||
opal_dt_swap_long_double(void *to_p, const void *from_p, const size_t size, size_t count, uint32_t remoteArch)
|
opal_dt_swap_long_double(void *to_p, const void *from_p, const size_t size, size_t count, uint32_t remoteArch)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_IEEE754_H
|
||||||
size_t i;
|
size_t i;
|
||||||
long double*to = (long double *) to_p;
|
long double*to = (long double *) to_p;
|
||||||
|
|
||||||
@ -120,6 +121,9 @@ opal_dt_swap_long_double(void *to_p, const void *from_p, const size_t size, size
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
assert(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define opal_dt_swap_long_double(to_p, from_p, size, count, remoteArch)
|
#define opal_dt_swap_long_double(to_p, from_p, size, count, remoteArch)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user