Skip to content

Commit 7e5768b

Browse files
committed
Faster int<->float conversions.
1 parent 019f347 commit 7e5768b

File tree

2 files changed

+274
-219
lines changed

2 files changed

+274
-219
lines changed

build.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -281,21 +281,15 @@ mod c {
281281

282282
if target_env == "msvc" {
283283
if target_arch == "x86_64" {
284-
sources.extend(&[
285-
("__floatdisf", "x86_64/floatdisf.c"),
286-
("__floatdixf", "x86_64/floatdixf.c"),
287-
]);
284+
sources.extend(&[("__floatdixf", "x86_64/floatdixf.c")]);
288285
}
289286
} else {
290287
// None of these seem to be used on x86_64 windows, and they've all
291288
// got the wrong ABI anyway, so we want to avoid them.
292289
if target_os != "windows" {
293290
if target_arch == "x86_64" {
294291
sources.extend(&[
295-
("__floatdisf", "x86_64/floatdisf.c"),
296292
("__floatdixf", "x86_64/floatdixf.c"),
297-
("__floatundidf", "x86_64/floatundidf.S"),
298-
("__floatundisf", "x86_64/floatundisf.S"),
299293
("__floatundixf", "x86_64/floatundixf.S"),
300294
]);
301295
}
@@ -306,11 +300,7 @@ mod c {
306300
("__ashldi3", "i386/ashldi3.S"),
307301
("__ashrdi3", "i386/ashrdi3.S"),
308302
("__divdi3", "i386/divdi3.S"),
309-
("__floatdidf", "i386/floatdidf.S"),
310-
("__floatdisf", "i386/floatdisf.S"),
311303
("__floatdixf", "i386/floatdixf.S"),
312-
("__floatundidf", "i386/floatundidf.S"),
313-
("__floatundisf", "i386/floatundisf.S"),
314304
("__floatundixf", "i386/floatundixf.S"),
315305
("__lshrdi3", "i386/lshrdi3.S"),
316306
("__moddi3", "i386/moddi3.S"),

0 commit comments

Comments
 (0)