From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: [PATCH 0/2] math128 - v2 Date: Wed, 25 Apr 2012 13:15:52 +0200 Message-ID: <20120425111552.665217867@chello.nl> Return-path: Received: from casper.infradead.org ([85.118.1.10]:33051 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758678Ab2DYL2p (ORCPT ); Wed, 25 Apr 2012 07:28:45 -0400 Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Linus Torvalds , Andrew Morton , Juri Lelli , Andy Lutomirski Take two of the math128 bits.. Changes since last time: - Added gcc __int128 versions for where it works - Added Andy's mul_u64_u32_shr() due to popular demand :-) - Added {shl,shr}_u128 as requested by hpa (although I suspect he'll use Andy's fancy function). - Added a U128_INIT() constant initializer. - Renamed mult_u128 to mul_u64_u64, hpa complaned the name was misleading - Fixed some of the code generation issues with add_u128 and mul_u64_64. I've also assumed we're all actually ok with adding this functionality, so unless someone hollers I'll push this for inclusion.