From: Matteo Croce <technoboy85@gmail.com>
To: linux-mips@linux-mips.org
Subject: Re: [PATCH 1/7] AR7: core support
Date: Tue, 4 Sep 2007 00:12:49 +0200 [thread overview]
Message-ID: <200709040012.49538.technoboy85@gmail.com> (raw)
In-Reply-To: <20070903150444.GC29574@networkno.de>
Il Monday 03 September 2007 17:04:44 hai scritto:
> > +static int gcd(int x, int y)
> > +{
> > + if (x > y)
> > + return (x % y) ? gcd(y, x % y) : y;
> > + return (y % x) ? gcd(x, y % x) : x;
> > +}
> > +
> > +static inline int ABS(int x)
> > +{
> > + return (x >= 0) ? x : -x;
> > +}
>
> Isn't that already available in the generic kernel code?
abs() is, but gcd() is not globally accessible. Should I copy it from the non
recursive from other kernel code?
Matteo
prev parent reply other threads:[~2007-09-03 22:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-03 13:23 [PATCH 1/7] AR7: core support Matteo Croce
2007-09-03 15:04 ` Thiemo Seufer
2007-09-03 16:06 ` Geert Uytterhoeven
2007-09-03 22:12 ` Matteo Croce [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=200709040012.49538.technoboy85@gmail.com \
--to=technoboy85@gmail.com \
--cc=linux-mips@linux-mips.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