lkml.org 
[lkml]   [2012]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] math128: Introduce {mult,add,cmp}_u128
From
Date
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..


\
 
 \ /
  Last update: 2012-04-25 14:53    [W:0.068 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site