From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH 1/2] math128: Introduce {mult,add,cmp}_u128 Date: Wed, 25 Apr 2012 14:50:06 +0200 Message-ID: <1335358206.28150.265.camel@twins> References: <20120425111552.665217867@chello.nl> <20120425112244.894997253@chello.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from merlin.infradead.org ([205.233.59.134]:37608 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754659Ab2DYMuV convert rfc822-to-8bit (ORCPT ); Wed, 25 Apr 2012 08:50:21 -0400 In-Reply-To: <20120425112244.894997253@chello.nl> Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , Juri Lelli , Andy Lutomirski , Ingo Molnar , Thomas Gleixner On Wed, 2012-04-25 at 13:15 +0200, Peter Zijlstra wrote: > +static inline u128 add_u128(u128 a, u128 b) > +{ > + a.lo += b.lo; > + if (a.lo < b.lo) > + a.hi++; > + > + return a; > +} D'0h I lost a .hi add there..