linux/lib/gcd.c
<<
.2.6/spa > 2.6/form> 2.6a .2. href="../linux+v3.7.3/lib/gcd.c"> .2.6img src="../.static/gfx/right.png" alt=">>"> 6/spa > 6spa class="lxr_search"> . .2.6input typionhidden" namionnavtarget" /option"> .2.6input typiontext" namionsearch" idonsearch"> .2.6butt14Search 2.6/form> 6/spa > 6spa class="lxr_prefs"> 2.6a href="+prefs?return=lib/gcd.c" .2. onclick="return ajax_prefs();"> .2.Prefs 2.6/a> 6/spa > .2. .6/div> .2. .6form ac ="ajax+*" method="post" onsubmit="return false;"> 6input typionhidden" namionajax_lookup" idonajax_lookup" /option"> .2. .6/form> .2. .6div class="headingbott1m">
.2.
.2. 2. .6div idonsearch_results" class="search_results" 2> .2. .6/div> 6div idoncontent"> 6div idonfile_contents">
. .16/a>#include <linux/kernel.h6/a>>
. .26/a>#include <linux/gcd.h6/a>>
. .36/a>#include <linux/export.h6/a>>
. .46/a>
. .56/a>6spa  class="comment">/* Greatest comm14
. .66/a>unsigned long.6a href="+code=gcd" class="sref">gcd6/a>(unsigned long.6a href="+code=a" class="sref">a6/a>, unsigned long.6a href="+code=b" class="sref">b6/a>)
. .76/a>{
. .86/a>        unsigned long.6a href="+code=r" class="sref">r6/a>;
. .96/a>
. ptioa>        if (6a href="+code=a" class="sref">a6/a> <.6a href="+code=b" class="sref">b6/a>)
. 11ioa>                6a href="+code=swap" class="sref">swap6/a>(6a href="+code=a" class="sref">a6/a>, 6a href="+code=b" class="sref">b6/a>);
. 126/a>
. 13ioa>        if (!6a href="+code=b" class="sref">b6/a>)
. 14ioa>                return 6a href="+code=a" class="sref">a6/a>;
. 15ioa>        while ((6a href="+code=r" class="sref">r6/a> = 6a href="+code=a" class="sref">a6/a> %.6a href="+code=b" class="sref">b6/a>) != 0) {
. 16ioa>                6a href="+code=a" class="sref">a6/a> = 6a href="+code=b" class="sref">b6/a>;
. 17ioa>                6a href="+code=b" class="sref">b6/a> = 6a href="+code=r" class="sref">r6/a>;
. 186/a>        }
. 196/a>        return 6a href="+code=b" class="sref">b6/a>;
. 2tioa>}
. 21ioa>6a href="+code=EXPORT_SYMBOL_GPL" class="sref">EXPORT_SYMBOL_GPL6/a>(6a href="+code=gcd" class="sref">gcd6/a>);
. 226/a>
6/div> 6div class="footer"> The original LXR software by the LXR community6/a>, this experimental vers.14lxr@linux.no6/a>. 6/div> 6div class="subfooter"> lxr.linux.no kindly hosted by Redpill Linpro AS6/a>, provider of Linux consulting and opera s services since 1995. 6/div> 6/body> 6/html>