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 "sincos.S"
9 .text
10 .align 2
11 /* zig patch: remove sincos symbol because sincos in compiler_rt is used instead */
12 .globl __MINGW_USYMBOL(sincosl)
13 .def __MINGW_USYMBOL(sincosl); .scl 2; .type 32; .endef
14__MINGW_USYMBOL(sincosl):
15 str d8, [sp, #-32]!
16 str x30, [sp, #8]
17 stp x19, x20, [sp, #16]
18
19 mov x19, x0
20 mov x20, x1
21 fmov d8, d0
22 bl sin
23 str d0, [x19]
24
25 fmov d0, d8
26 bl cos
27 str d0, [x20]
28
29 ldp x19, x20, [sp, #16]
30 ldr x30, [sp, #8]
31 ldr d8, [sp], #32
32 ret