Date: Tue, 24 Aug 2010 20:45:21 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r211772 - projects/ofed/head/contrib/ofed/libmlx4/src Message-ID: <201008242045.o7OKjLQk087319@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jeff Date: Tue Aug 24 20:45:21 2010 New Revision: 211772 URL: http://svn.freebsd.org/changeset/base/211772 Log: - Use __LP64__ as a mostly correct check for 64bit architectures rather than SIZEOF_LONG. We can't simply use sizeof(long) here as that is not available to the preprocessor. Sponsored by: Isilon Systems, iX Systems, and Panasas Modified: projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h Modified: projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h ============================================================================== --- projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h Tue Aug 24 20:41:05 2010 (r211771) +++ projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h Tue Aug 24 20:45:21 2010 (r211772) @@ -33,8 +33,7 @@ #ifndef DOORBELL_H #define DOORBELL_H -#if SIZEOF_LONG == 8 - +#ifdef __LP64__ #if __BYTE_ORDER == __LITTLE_ENDIAN # define MLX4_PAIR_TO_64(val) ((uint64_t) val[1] << 32 | val[0]) #elif __BYTE_ORDER == __BIG_ENDIAN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008242045.o7OKjLQk087319>