Skip to content

Commit b787510

Browse files
committed
delete superfluous assembly libc floor implementations
1 parent 3124f70 commit b787510

File tree

7 files changed

+1
-136
lines changed

7 files changed

+1
-136
lines changed

lib/libc/mingw/math/x86/floorf.S

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

lib/libc/mingw/math/x86/floorl.S

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

lib/libc/musl/src/math/i386/floor.s

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1-
.global floorf
2-
.type floorf,@function
3-
floorf:
4-
flds 4(%esp)
5-
jmp 1f
6-
7-
.global floorl
8-
.type floorl,@function
9-
floorl:
10-
fldt 4(%esp)
11-
jmp 1f
1+
/* zig patch: removed `floorl` and `floorf` in favor of using zig compiler_rt's implementations */
122

13-
.global floor
14-
.type floor,@function
15-
floor:
16-
fldl 4(%esp)
17-
1: mov $0x7,%al
183
1: fstcw 4(%esp)
194
mov 5(%esp),%ah
205
mov %al,5(%esp)

lib/libc/musl/src/math/i386/floorf.s

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/libc/musl/src/math/i386/floorl.s

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/libs/mingw.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ const mingw32_x86_src = [_][]const u8{
931931
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "exp2l.S",
932932
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "expl.c",
933933
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "expm1l.c",
934-
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "floorl.S",
935934
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fmodl.c",
936935
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fucom.c",
937936
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ilogbl.S",
@@ -975,7 +974,6 @@ const mingw32_x86_32_src = [_][]const u8{
975974
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2f.c",
976975
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanf.c",
977976
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceilf.S",
978-
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "floorf.S",
979977
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fmodf.c",
980978
};
981979

src/libs/musl.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,6 @@ const src_files = [_][]const u8{
953953
"musl/src/math/i386/exp_ld.s",
954954
"musl/src/math/i386/expl.s",
955955
"musl/src/math/i386/expm1l.s",
956-
"musl/src/math/i386/floorf.s",
957-
"musl/src/math/i386/floorl.s",
958956
"musl/src/math/i386/floor.s",
959957
"musl/src/math/i386/fmod.c",
960958
"musl/src/math/i386/fmodf.c",

0 commit comments

Comments
 (0)