Home | History | Annotate | Line # | Download | only in i387
lrint.S revision 1.1
      1 /* $NetBSD: lrint.S,v 1.1 2004/07/01 17:30:48 drochner Exp $ */
      2 
      3 #include <machine/asm.h>
      4 
      5 ENTRY(lrint)
      6 #ifdef __i386__
      7 	pushl   %ebp
      8 	movl    %esp,%ebp
      9 	subl    $4,%esp
     10 	fldl	8(%ebp)
     11 	fistpl	(%esp)
     12 	movl	(%esp),%eax
     13 	leave
     14 	ret
     15 #else
     16 	cvtsd2siq %xmm0,%rax
     17 	ret
     18 #endif
     19