22 lines
309 B
ArmAsm
22 lines
309 B
ArmAsm
|
/* $NetBSD: lrint.S,v 1.3 2004/10/13 15:18:31 drochner 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,-8(sp)
|
||
|
stt ft0,0(sp)
|
||
|
ldq v0,0(sp)
|
||
|
lda sp,8(sp)
|
||
|
#endif
|
||
|
ret
|
||
|
END(lrint)
|