From: "Jan Beulich" Subject: Re: [v3 03/15] Add cmpxchg16b support for x86-64 Date: Fri, 10 Jul 2015 13:57:15 +0100 Message-ID: <559FDD4B020000780008F846@mail.emea.novell.com> References: <1435123109-10481-1-git-send-email-feng.wu@intel.com> <1435123109-10481-4-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1435123109-10481-4-git-send-email-feng.wu@intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu Cc: kevin.tian@intel.com, keir@xen.org, george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, xen-devel@lists.xen.org, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 24.06.15 at 07:18, wrote: > --- a/xen/include/xen/types.h > +++ b/xen/include/xen/types.h > @@ -47,6 +47,11 @@ typedef __u64 uint64_t; > typedef __u64 u_int64_t; > typedef __s64 int64_t; > > +typedef struct { > + uint64_t low; > + uint64_t high; > +} uint128_t; This violates the C standard; if you did this in an x86-specific file (or conditional upon BITS_PER_LONG >= 64) I can't see why you couldn't use gcc's __uint128_t built-in type (available on arches with host word width >= 64 bits). Jan