Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 25 Apr 2002 02:21:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 25 Apr 2002 02:21:03 -0400 Received: from air-2.osdl.org ([65.201.151.6]:52490 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id ; Thu, 25 Apr 2002 02:21:02 -0400 Date: Wed, 24 Apr 2002 23:15:32 -0700 (PDT) From: "Randy.Dunlap" X-X-Sender: To: Chris Caputo cc: Ben Greear , Subject: Re: unresolved symbol: __udivdi3 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, I threw that function into a little procfs test module that I have and it worked nicely. Thanks. ~Randy On Sat, 20 Apr 2002, Chris Caputo wrote: | On Fri, 19 Apr 2002, Ben Greear wrote: | > Also, for what it's worth, do_div on x86 seems to corrupt arguments | > given to it, and may do other screwy things. I'm just going to | > go back to casting and let user-space do any precise division. | | Or consider the code from: | | http://nemesis.sourceforge.net/browse/lib/static/intmath/ix86/intmath.c.html | | Adapted as follows... | | Chris | | --- | | // Function copied/adapted/optimized from: | // | // nemesis.sourceforge.net/browse/lib/static/intmath/ix86/intmath.c.html | // | // Copyright 1994, University of Cambridge Computer Laboratory | // All Rights Reserved. | // | // TODO: When running on a 64-bit CPU platform, this should no longer be | // TODO: necessary. | - - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/