linux-mips
[Top] [All Lists]

Re: [PATCH 1/7] AR7: core support

To: linux-mips@linux-mips.org
Subject: Re: [PATCH 1/7] AR7: core support
From: Matteo Croce <technoboy85@gmail.com>
Date: Tue, 4 Sep 2007 00:12:49 +0200
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Y6mvfxamaLdwgw+/6t4/vd3oPKoGFwOT6scAXqZKIOvoruK0wQuhaglRXB9oP9FIlWOTV12xGwBGaSzAyundfn0R0tFxM3GPpdprUlQwxW5LgkkbSE9J11clC73Jr55e7hXEbyeju3gUILyHZbfJxokefU1+WoegBwz8y24ixTo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=szJDdRUHS0RDPwHsPZIdDQ9gtRhhsLr5PK5RBxCgBnSJCeaII5LG/nka3TvikKkj3YSy0naokcPt+/5gH0IcGWXM6il0gkH5zQRl+/bZ3iZ3f2AR1g5iegBd8uaOR8apYlik7644IeMt9qMzcsRlJpGO9biFPj0Q+Mjo7ctkFs0=
In-reply-to: <20070903150444.GC29574@networkno.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <40101cc30709030623r4fb2d3caw146fa6dec16b283e@mail.gmail.com> <20070903150444.GC29574@networkno.de>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.6 (enterprise 0.20070824.704228)
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 in Thread] Current Thread [Next in Thread>