summaryrefslogtreecommitdiff
path: root/lib/libm/arch/alpha/lrint.S
blob: 54a1a654e1991a589b600edf2f71ac941f3fba02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* $NetBSD: lrint.S,v 1.4 2021/07/06 12:38:40 thorpej Exp $ */

/*
 * Written by Matthias Drochner <drochner@NetBSD.org>.
 * Public domain.
 */

#include <machine/asm.h>

LEAF(lrint, 1)
	cvttq fa0,ft0
#if 0
	ftoit ft0,v0
#else
	lda sp,-16(sp)
	stt ft0,0(sp)
	ldq v0,0(sp)
	lda sp,16(sp)
#endif
	ret
END(lrint)