Annotation of researchv9/libc/gen/gcd.c, revision 1.1

1.1     ! root        1: /* The test if(b<0) is inside the loop to avoid anomalies
        !             2:    with the most negative integer */
        !             3: 
        !             4: gcd(a,b)
        !             5: register a, b;
        !             6: {
        !             7:        register t;
        !             8:        if(b==0)
        !             9:                return(abs(a));
        !            10:        for(;;) {
        !            11:                if(b<0)
        !            12:                        b = -b;
        !            13:                t = a % b;
        !            14:                if(t==0)
        !            15:                        return(b);
        !            16:                a = b;
        !            17:                b = t;
        !            18:        }
        !            19: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.