Annotation of 40BSD/lib/libF77/d_mod.c, revision 1.1

1.1     ! root        1: double d_mod(x,y)
        !             2: double *x, *y;
        !             3: {
        !             4: double floor(), quotient;
        !             5: if( (quotient = *x / *y) >= 0)
        !             6:        quotient = floor(quotient);
        !             7: else
        !             8:        quotient = -floor(-quotient);
        !             9: return(*x - (*y) * quotient );
        !            10: }

unix.superglobalmegacorp.com

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