Annotation of coherent/b/lib/libm/i387/sqrt87.s, revision 1.1.1.1

1.1       root        1: //////////
                      2: / /usr/src/libm/i387/sqrt87.s
                      3: / i387 mathematics library
                      4: / sqrt(d)
                      5: //////////
                      6: 
                      7: RASIZE =       4
                      8: 
                      9:        .globl  sqrt
                     10:        .globl  _tstcc
                     11:        .globl  _edomain
                     12: 
                     13: //////////
                     14: / double
                     15: / sqrt(d)
                     16: / double d;
                     17: //////////
                     18: 
                     19: d      =       RASIZE          / arg offset
                     20: 
                     21: sqrt:
                     22:        fldl    d(%esp)         / Load argument d.
                     23: 
                     24:        call    _tstcc          / Test if d < 0.
                     25:        jae     ?0              / d >= 0.
                     26:        jmp     _edomain        / Issue EDOM error and return 0.
                     27: 
                     28: ?0:
                     29:        fsqrt                   / result = sqrt(d)
                     30:        ret
                     31: 
                     32: / end of sqrt87.s

unix.superglobalmegacorp.com

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