home *** CD-ROM | disk | FTP | other *** search
- / ldexp.s (emx+gcc) -- Copyright (c) 1991-1993 by Eberhard Mattes
-
- #include <libm.h>
-
- .globl _ldexp
-
- .text
-
- .align 2, 0x90
-
- / double ldexp (double x, int exp)
-
- #define x 4(%esp)
- #define exp 12(%esp)
-
- _ldexp:
- fildl exp / exp
- fldl x / x
- fscale
- fstp %st(1)
- fstpl x / convert to double
- fldl x
- _xam
- j_inf 1f
- ret
-
- .align 2, 0x90
- 1: SETERRNO($ERANGE)
- ret
-