From owner-svn-src-projects@FreeBSD.ORG Tue Jan 18 04:13:46 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA9E0106566B; Tue, 18 Jan 2011 04:13:46 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C9A048FC13; Tue, 18 Jan 2011 04:13:46 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0I4DktR023793; Tue, 18 Jan 2011 04:13:46 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0I4DkwG023790; Tue, 18 Jan 2011 04:13:46 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201101180413.p0I4DkwG023790@svn.freebsd.org> From: Jeff Roberson Date: Tue, 18 Jan 2011 04:13:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217528 - in projects/ofed/head/sys: amd64/include i386/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 04:13:46 -0000 Author: jeff Date: Tue Jan 18 04:13:46 2011 New Revision: 217528 URL: http://svn.freebsd.org/changeset/base/217528 Log: - Fix the type of constants shifted by more than 32. Modified: projects/ofed/head/sys/amd64/include/endian.h projects/ofed/head/sys/i386/include/endian.h Modified: projects/ofed/head/sys/amd64/include/endian.h ============================================================================== --- projects/ofed/head/sys/amd64/include/endian.h Tue Jan 18 01:20:15 2011 (r217527) +++ projects/ofed/head/sys/amd64/include/endian.h Tue Jan 18 04:13:46 2011 (r217528) @@ -102,9 +102,9 @@ __byte_swap_long_var(__uint64_t x) (((__uint64_t)x >> 40) & 0xff00) | \ (((__uint64_t)x >> 24) & 0xff0000) | \ (((__uint64_t)x >> 8) & 0xff000000) | \ - (((__uint64_t)x << 8) & (0xfful << 32)) | \ - (((__uint64_t)x << 24) & (0xfful << 40)) | \ - (((__uint64_t)x << 40) & (0xfful << 48)) | \ + (((__uint64_t)x << 8) & (0xffull << 32)) | \ + (((__uint64_t)x << 24) & (0xffull << 40)) | \ + (((__uint64_t)x << 40) & (0xffull << 48)) | \ (((__uint64_t)x << 56)))) #define __bswap64(x) (__builtin_constant_p(x) ? \ Modified: projects/ofed/head/sys/i386/include/endian.h ============================================================================== --- projects/ofed/head/sys/i386/include/endian.h Tue Jan 18 01:20:15 2011 (r217527) +++ projects/ofed/head/sys/i386/include/endian.h Tue Jan 18 04:13:46 2011 (r217528) @@ -92,9 +92,9 @@ __byte_swap_int_var(__uint32_t x) (((__uint64_t)x >> 40) & 0xff00) | \ (((__uint64_t)x >> 24) & 0xff0000) | \ (((__uint64_t)x >> 8) & 0xff000000) | \ - (((__uint64_t)x << 8) & (0xfful << 32)) | \ - (((__uint64_t)x << 24) & (0xfful << 40)) | \ - (((__uint64_t)x << 40) & (0xfful << 48)) | \ + (((__uint64_t)x << 8) & (0xffull << 32)) | \ + (((__uint64_t)x << 24) & (0xffull << 40)) | \ + (((__uint64_t)x << 40) & (0xffull << 48)) | \ (((__uint64_t)x << 56)))) #define __bswap64(x) __byte_swap_64_const(x)