From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: "James G. Sack (jim)" <jgsack@san.rr.com>
Cc: linux-kernel@vger.kernel.org, gregkh@suse.de
Subject: Re: [RFC] HOWTO do Linux kernel development - take 3
Date: Sun, 27 Nov 2005 20:33:17 -0800 [thread overview]
Message-ID: <20051127203317.623f9a7c.rdunlap@xenotime.net> (raw)
In-Reply-To: <op.s0qed2o1c50ahi@jgs.sack-net.pvt>
On Wed, 23 Nov 2005 22:16:40 -0800 James G. Sack (jim) wrote:
> Pardon the technical question, but..
>
> I wonder if you could either elaborate or give a reference to what is
> meant by
>
> "Arbitrary long long divisions .. not allowed"
(if not already answered)
short answer: see include/asm-generic/div64.h
longer answer:
Not supported:
long long numerator, divisor, dividend;
/* init. numerator & divisor */
dividend = numerator / divisor;
Is supported:
uin64_t numerator, dividend;
uint32_t divisor, remainder;
/* init. numerator & divisor */
remainder = do_div(&numerator, divisor);
---
~Randy
next prev parent reply other threads:[~2005-11-28 4:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-24 6:16 James G. Sack (jim)
2005-11-28 4:33 ` Randy.Dunlap [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-17 7:09 Greg KH
2005-11-17 12:47 ` Alex Riesen
2005-11-17 12:59 ` Josh Boyer
2005-11-17 13:07 ` Alex Riesen
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=20051127203317.623f9a7c.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=gregkh@suse.de \
--cc=jgsack@san.rr.com \
--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®