blob: 3bdea28efafe659625e8b1061c65955598de6891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* $OpenBSD: s_scalbn.S,v 1.3 2009/04/25 11:03:35 martynas Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <machine/asm.h>
#include "abi.h"
ENTRY(scalbn)
movsd %xmm0,-8(%rsp)
movl %edi,-12(%rsp)
fildl -12(%rsp)
fldl -8(%rsp)
fscale
fstp %st(1) /* bug fix for fp stack overflow */
fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
|