/* $OpenBSD: s_scalbnf.S,v 1.5 2016/09/12 19:47:01 guenther Exp $ */ /* * Written by J.T. Conklin . * Public domain. */ #include #include "abi.h" .global ldexpf ldexpf = scalbnf ENTRY(scalbnf) movss %xmm0,-8(%rsp) movl %edi,-4(%rsp) fildl -4(%rsp) flds -8(%rsp) fscale fstp %st(1) /* bug fix for fp stack overflow */ fstps -8(%rsp) movss -8(%rsp),%xmm0 ret END_STD(scalbnf)