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 "remainder.S" 9 .text 10#ifdef __x86_64__ 11 .align 8 12#else 13 .align 4 14#endif 15.globl __MINGW_USYMBOL(remainder) 16 .def __MINGW_USYMBOL(remainder); .scl 2; .type 32; .endef 17__MINGW_USYMBOL(remainder): 18#ifdef __x86_64__ 19 movsd %xmm0,-16(%rsp) 20 movsd %xmm1,-32(%rsp) 21 fldl -32(%rsp) 22 fldl -16(%rsp) 231: fprem1 24 fstsw %ax 25 sahf 26 jp 1b 27 fstp %st(1) 28 fstpl -16(%rsp) 29 movsd -16(%rsp),%xmm0 30 ret 31#else 32 fldl 12(%esp) 33 fldl 4(%esp) 341: fprem1 35 fstsw %ax 36 sahf 37 jp 1b 38 fstp %st(1) 39 ret 40#endif 41