aboutsummaryrefslogtreecommitdiff
path: root/lib/gcd.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-18lib: add lib/gcd.cFlorian Fainelli1-0/+18
This patch adds lib/gcd.c which contains a greatest common divider implementation taken from sound/core/pcm_timer.c Several usages of this new library function will be sent to subsystem maintainers. [[email protected]: use swap() (pointed out by Joe)] [[email protected]: just add gcd.o to obj-y, remove Kconfig changes] Signed-off-by: Florian Fainelli <[email protected]> Cc: Sergei Shtylyov <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: Simon Horman <[email protected]> Cc: Julius Volz <[email protected]> Cc: David S. Miller <[email protected]> Cc: Patrick McHardy <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>