svn commit: r211772 - projects/ofed/head/contrib/ofed/libmlx4/src
Jeff Roberson
jeff at FreeBSD.org
Tue Aug 24 20:45:21 UTC 2010
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
More information about the svn-src-projects
mailing list