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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux