From: Takashi Iwai <tiwai@suse.de>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: 64-bit modulus operation in a 32-bit kernel
Date: Tue, 24 Apr 2012 20:20:50 +0200 [thread overview]
Message-ID: <s5hzka1kn3x.wl%tiwai@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1204241347490.1511-100000@iolanthe.rowland.org>
At Tue, 24 Apr 2012 13:50:01 -0400 (EDT),
Alan Stern wrote:
>
> I need to compute the remainder when a 64-bit quantity is divided by a
> small value (126 in this case). The % operator doesn't work in an
> x86/32 kernel. What's the Right Way to do it?
div_u64_rem() in linux/math64.h?
Takashi
next prev parent reply other threads:[~2012-04-24 18:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 17:50 Alan Stern
2012-04-24 18:20 ` Takashi Iwai [this message]
2012-04-24 18:57 ` Alan Stern
2012-04-24 19:15 ` Andreas Schwab
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=s5hzka1kn3x.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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®