From: "Randy.Dunlap" <rddunlap@osdl.org>
To: "dave" <davekern@ihug.co.nz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: error using unsigned long long not working in 2.4.x
Date: Mon, 17 Mar 2003 11:06:58 -0800 [thread overview]
Message-ID: <20030317110658.5aff6ebc.rddunlap@osdl.org> (raw)
In-Reply-To: <002d01c2ed11$6ba7a110$0b721cac@stacy>
On Mon, 17 Mar 2003 21:44:16 -0800 "dave" <davekern@ihug.co.nz> wrote:
| hi i am writing a kernel 2.4.x driver and need to do maths on 64 bit ints
| (unsigned long long)
| bcause you can not use the FPU
| but when i insmod i get the error unresolved symbol __udivdi3 i need!! 64
| bit ints
Other alternatives are search the lkml archive for a patch from
George Anzinger on 2003-mar-05,
subject: [PATCH] Functions to do easy scaled math.
or if all you need is 64-bit mul and div, and only during setup
(when speed isn't a huge factor), you could use the divrem64()
function in this sample /procfs module:
http://www.xenotime.net/linux/procfs_ex/procdiv64.c
--
~Randy
prev parent reply other threads:[~2003-03-17 18:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 5:44 dave
2003-03-17 8:54 ` Matti Aarnio
2003-03-17 19:06 ` Randy.Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030317110658.5aff6ebc.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=davekern@ihug.co.nz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®