/ sqrt.s (emx+gcc) -- Copyright (c) 1991-1993 by Eberhard Mattes

#include <libm.h>

        .globl  FUN(sqrt)

        .text

        .align  2, 0x90

/ double sqrt (double x)

#define x       4(%esp)

DEF(sqrt)
        FLD     x                       / x
        fsqrt
        _xam
        j_nan   1f
        ret

        .align  2, 0x90
1:      SETERRNO($EDOM)
        ret
