master
 1/**
 2 * This file has no copyright assigned and is placed in the Public Domain.
 3 * This file is part of the mingw-w64 runtime package.
 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 5 */
 6#include <_mingw_mac.h>
 7
 8	.file	"remainderl.S"
 9	.text
10#ifdef __x86_64__
11	.align 8
12#else
13	.align 4
14#endif
15.globl __MINGW_USYMBOL(remainderl)
16	.def	__MINGW_USYMBOL(remainderl);	.scl	2;	.type	32;	.endef
17__MINGW_USYMBOL(remainderl):
18#ifdef __x86_64__
19	fldt	(%r8)
20	fldt	(%rdx)
211:	fprem1
22	fstsw	%ax
23	sahf
24	jp	1b
25	fstp	%st(1)
26	movq	%rcx,%rax
27	movq	$0,8(%rcx)
28	fstpt	(%rcx)
29	ret
30#else
31	fldt	16(%esp)
32	fldt	4(%esp)
331:	fprem1
34	fstsw	%ax
35	sahf
36	jp	1b
37	fstp	%st(1)
38	ret
39#endif