Skip to content

Commit 71ff383

Browse files
committed
libc: replace MinGW's trigonometric functions with compiler_rt's
- sinf - cosf - sincos - sincosf - tanf
1 parent 21d9e03 commit 71ff383

File tree

9 files changed

+0
-157
lines changed

9 files changed

+0
-157
lines changed

lib/libc/mingw/math/arm/sincos.S

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
.file "sincos.S"
99
.text
1010
.align 2
11-
.globl __MINGW_USYMBOL(sincos)
1211
.globl __MINGW_USYMBOL(sincosl)
13-
.def __MINGW_USYMBOL(sincos); .scl 2; .type 32; .endef
1412
.def __MINGW_USYMBOL(sincosl); .scl 2; .type 32; .endef
15-
__MINGW_USYMBOL(sincos):
1613
__MINGW_USYMBOL(sincosl):
1714
push {r4, r5, r11, lr}
1815
add r11, sp, #8

lib/libc/mingw/math/arm/sincosf.S

Lines changed: 0 additions & 29 deletions
This file was deleted.

lib/libc/mingw/math/arm64/sincos.S

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
.file "sincos.S"
99
.text
1010
.align 2
11-
.globl __MINGW_USYMBOL(sincos)
1211
.globl __MINGW_USYMBOL(sincosl)
13-
.def __MINGW_USYMBOL(sincos); .scl 2; .type 32; .endef
1412
.def __MINGW_USYMBOL(sincosl); .scl 2; .type 32; .endef
15-
__MINGW_USYMBOL(sincos):
1613
__MINGW_USYMBOL(sincosl):
1714
str d8, [sp, #-32]!
1815
str x30, [sp, #8]

lib/libc/mingw/math/arm64/sincosf.S

Lines changed: 0 additions & 31 deletions
This file was deleted.

lib/libc/mingw/math/x86/cosf.c

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/libc/mingw/math/x86/cossin.c

Lines changed: 0 additions & 52 deletions
This file was deleted.

lib/libc/mingw/math/x86/sinf.c

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/libc/mingw/math/x86/tanf.c

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/libs/mingw.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ const mingw32_x86_src = [_][]const u8{
916916
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "copysignl.S",
917917
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl.c",
918918
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl_internal.S",
919-
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cossin.c",
920919
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cossinl.c",
921920
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "exp2l.S",
922921
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "expl.c",
@@ -965,11 +964,8 @@ const mingw32_x86_32_src = [_][]const u8{
965964
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2f.c",
966965
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanf.c",
967966
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceilf.S",
968-
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosf.c",
969967
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "floorf.S",
970968
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fmodf.c",
971-
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "sinf.c",
972-
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "tanf.c",
973969
};
974970

975971
const mingw32_arm_src = [_][]const u8{
@@ -983,7 +979,6 @@ const mingw32_arm32_src = [_][]const u8{
983979
"math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "s_rint.c",
984980
"math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "s_rintf.c",
985981
"math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "sincos.S",
986-
"math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "sincosf.S",
987982
};
988983

989984
const mingw32_arm64_src = [_][]const u8{
@@ -992,7 +987,6 @@ const mingw32_arm64_src = [_][]const u8{
992987
"math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "rint.c",
993988
"math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "rintf.c",
994989
"math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "sincos.S",
995-
"math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "sincosf.S",
996990
};
997991

998992
const mingw32_winpthreads_src = [_][]const u8{

0 commit comments

Comments
 (0)