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

1.1       root        1: //////////
                      2: / /usr/src/libm/i387/error87.s
                      3: / i387 mathematics library
                      4: / _edomain(), _erange()
                      5: //////////
                      6: 
                      7:        .globl  _edomain
                      8:        .globl  _erange
                      9:        .globl  errno
                     10: 
                     11: //////////
                     12: / _edomain replaces the NDP stacktop %st with 0.0
                     13: / and sets errno_ to the appropriate error code.
                     14: / _erange just sets the error code.
                     15: //////////
                     16: 
                     17: EDOM   =       33              / domain error code
                     18: ERANGE =       34              / range error code
                     19: 
                     20: _edomain:
                     21:        movl    errno, $EDOM    / Set errno.
                     22:        fstp    %st             / Pop the stack
                     23:        fldz                    / and load a 0.
                     24:        ret
                     25: 
                     26: _erange:
                     27:        movl    errno, $ERANGE  / Set errno.
                     28:        ret
                     29: 
                     30: / end of error87.s

unix.superglobalmegacorp.com

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