Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / lib / libm / arch / i387 / e_scalb.S
blobdd0a8f6ca85a3459a2ba7ea94b13cd2fb0cfa241
1 /*
2  * Written by J.T. Conklin <jtc@NetBSD.org>.
3  * Public domain.
4  */
6 #include <machine/asm.h>
8 #include "abi.h"
10 RCSID("$NetBSD: e_scalb.S,v 1.6 2001/06/19 00:26:30 fvdl Exp $")
12 ENTRY(__ieee754_scalb)
13         XMM_TWO_ARG_DOUBLE_PROLOGUE
14         fldl    ARG_DOUBLE_TWO
15         fldl    ARG_DOUBLE_ONE
16         fscale
17         fstp    %st(1)                  /* bug fix for fp stack overflow */
18         XMM_DOUBLE_EPILOGUE
19         ret