Annotation of coherent/b/lib/libm/hypot.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Hypotenuse function.
                      3:  */
                      4: #include <math.h>
                      5: 
                      6: #if    EMU87
                      7: #include "emumath.h"
                      8: #endif
                      9: 
                     10: double
                     11: hypot(x, y)
                     12: double x;
                     13: double y;
                     14: {
                     15:        double r;
                     16: 
                     17:        if (x == 0.)
                     18:                r = y;
                     19:        else {
                     20:                r = y/x;
                     21:                r = x * sqrt(1.0 + r*r);
                     22:        }
                     23:        return (r < 0. ? -r : r);
                     24: }

unix.superglobalmegacorp.com

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