/ani/mrses

To get this branch, use:
bzr branch http://suren.me/webbzr/ani/mrses

« back to all changes in this revision

Viewing changes to cell/tools.c

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-28 04:30:08 UTC
  • Revision ID: csa@dside.dyndns.org-20100428043008-vd9z0nso9axezvlp
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
unsigned gcd(unsigned x, unsigned y) {
 
2
        int g;
 
3
 
 
4
        g = y;
 
5
        while (x > 0) {
 
6
                g = x;
 
7
                x = y % x;
 
8
                y = g;
 
9
        }
 
10
        
 
11
        return g;
 
12
}