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