28 lines
417 B
ArmAsm
28 lines
417 B
ArmAsm
/*
|
|
* Written by J.T. Conklin <jtc@NetBSD.org>.
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
|
|
RCSID("$NetBSD: s_scalbnl.S,v 1.1 2011/07/26 17:03:23 joerg Exp $")
|
|
|
|
#ifdef WEAK_ALIAS
|
|
WEAK_ALIAS(scalbnl,_scalbnl)
|
|
#endif
|
|
|
|
ENTRY(_scalbnl)
|
|
#ifdef __x86_64__
|
|
movl %edi,-4(%rsp)
|
|
fildl -4(%rsp)
|
|
fldt 8(%rsp)
|
|
fscale
|
|
fstp %st(1)
|
|
#else
|
|
fildl 16(%esp)
|
|
fldt 4(%esp)
|
|
fscale
|
|
fstp %st(1) /* clean up stack */
|
|
#endif
|
|
ret
|