summaryrefslogtreecommitdiff
path: root/lib/libm/arch/mc68881/e_scalb.S
blob: 724a6996bb47b4a9aef08163ad037a0ae94d5ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$OpenBSD: e_scalb.S,v 1.2 2005/08/02 11:17:32 espie Exp $ */
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 */

#include <machine/asm.h>

ENTRY(__ieee754_scalb)
	fmoved	sp@(4),fp0
	fbeq	Ldone
	fscaled	sp@(12),fp0
Ldone:
	fmoved	fp0,sp@-
	movel	sp@+,d0
	movel	sp@+,d1
	rts