~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to ros-privexp/mingw-w64-crt/math/remainderf.S

  • Committer: NightStrike
  • Date: 2010-08-11 22:20:57 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:3266
Branch for adding option for supporting ros

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This file has no copyright assigned and is placed in the Public Domain.
 
3
 * This file is part of the w64 mingw-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   "remainderf.S"
 
9
        .text
 
10
#ifdef _WIN64
 
11
        .align 8
 
12
#else
 
13
        .align 4
 
14
#endif
 
15
.globl __MINGW_USYMBOL(remainder)
 
16
        .def    __MINGW_USYMBOL(remainderf);    .scl    2;      .type   32;     .endef
 
17
__MINGW_USYMBOL(remainderf):
 
18
#ifdef _WIN64
 
19
        movss   %xmm1,-12(%rsp)
 
20
        flds    -12(%rsp)
 
21
        movss   %xmm0,-12(%rsp)
 
22
        flds    -12(%rsp)
 
23
1:      fprem1
 
24
        fstsw   %ax
 
25
        sahf
 
26
        jp      1b
 
27
        fstp    %st(1)
 
28
        fstps   -12(%rsp)
 
29
        movss   -12(%rsp),%xmm0
 
30
        ret
 
31
#else
 
32
        flds    8(%esp)
 
33
        flds    4(%esp)
 
34
1:      fprem1
 
35
        fstsw   %ax
 
36
        sahf
 
37
        jp      1b
 
38
        fstp    %st(1)
 
39
        ret
 
40
#endif