| /** |
| * This file has no copyright assigned and is placed in the Public Domain. |
| * This file is part of the mingw-w64 runtime package. |
| * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| */ |
| #include <_mingw_mac.h> |
| |
| .file "fma.S" |
| .text |
| #ifdef _WIN64 |
| .align 8 |
| #else |
| .align 4 |
| #endif |
| .p2align 4,,15 |
| .globl __MINGW_USYMBOL(fma) |
| .def __MINGW_USYMBOL(fma); .scl 2; .type 32; .endef |
| __MINGW_USYMBOL(fma): |
| #if defined(_AMD64_) || defined(__x86_64__) |
| subq $56, %rsp |
| movsd %xmm0,(%rsp) |
| movsd %xmm1,16(%rsp) |
| movsd %xmm2,32(%rsp) |
| fldl (%rsp) |
| fmull 16(%rsp) |
| fldl 32(%rsp) |
| faddp |
| fstpl (%rsp) |
| movsd (%rsp),%xmm0 |
| addq $56, %rsp |
| ret |
| #elif defined(_ARM_) || defined(__arm__) |
| fmacd d2, d0, d1 |
| fcpyd d0, d2 |
| bx lr |
| #elif defined(_X86_) || defined(__i386__) |
| fldl 4(%esp) |
| fmull 12(%esp) |
| fldl 20(%esp) |
| faddp |
| ret |
| #endif |