Skip to content

Commit 25a8e86

Browse files
committed
opal/datatype: fix opal_dt_swap_long_double if no IEEE754_H
Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit a111fc8)
1 parent cbaf3b6 commit 25a8e86

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ AC_CACHE_SAVE
588588
opal_show_title "Header file tests"
589589

590590
AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h \
591-
dlfcn.h endian.h execinfo.h err.h fcntl.h grp.h ieee754 libgen.h \
591+
dlfcn.h endian.h execinfo.h err.h fcntl.h grp.h libgen.h \
592592
libutil.h memory.h netdb.h netinet/in.h netinet/tcp.h \
593593
poll.h pthread.h pty.h pwd.h sched.h \
594594
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 \
599599
sys/types.h sys/uio.h sys/un.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \
600600
termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
601601
ifaddrs.h crt_externs.h regex.h mntent.h paths.h \
602-
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h zlib.h])
602+
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h zlib.h ieee754.h])
603603

604604
AC_CHECK_HEADERS([sys/mount.h], [], [],
605605
[AC_INCLUDES_DEFAULT

opal/datatype/opal_copy_functions_heterogeneous.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ struct bit80 {
8989
static inline void
9090
opal_dt_swap_long_double(void *to_p, const void *from_p, const size_t size, size_t count, uint32_t remoteArch)
9191
{
92+
#ifdef HAVE_IEEE754_H
9293
size_t i;
9394
long double*to = (long double *) to_p;
9495

@@ -120,6 +121,9 @@ opal_dt_swap_long_double(void *to_p, const void *from_p, const size_t size, size
120121
}
121122
#endif
122123
}
124+
#else
125+
assert(0);
126+
#endif
123127
}
124128
#else
125129
#define opal_dt_swap_long_double(to_p, from_p, size, count, remoteArch)

0 commit comments

Comments
 (0)