e_remainderf.S revision 217108
1176227Sbde/* 2176227Sbde * Based on the i387 version written by J.T. Conklin <jtc@netbsd.org>. 3176227Sbde * Public domain. 4176227Sbde */ 5176227Sbde 6176227Sbde#include <machine/asm.h> 7176227Sbde 8176227SbdeRCSID("from: $NetBSD: e_remainderf.S,v 1.2 1995/05/08 23:49:47 jtc Exp $") 9176227Sbde__FBSDID("$FreeBSD: head/lib/msun/amd64/e_remainderf.S 217108 2011-01-07 16:13:12Z kib $") 10176227Sbde 11176227SbdeENTRY(remainderf) 12176227Sbde movss %xmm0,-4(%rsp) 13176227Sbde movss %xmm1,-8(%rsp) 14176227Sbde flds -8(%rsp) 15176227Sbde flds -4(%rsp) 16176227Sbde1: fprem1 17176227Sbde fstsw %ax 18176227Sbde testw $0x400,%ax 19176227Sbde jne 1b 20176227Sbde fstps -4(%rsp) 21176227Sbde movss -4(%rsp),%xmm0 22176227Sbde fstp %st 23176227Sbde ret 24217108Skib 25217108Skib .section .note.GNU-stack,"",%progbits 26