Skip to content

Commit 939cbca

Browse files
committed
Revert "Conversion from a wider to a narrower IEEE-754 floating-point type"
This reverts commit baab4fd.
1 parent f7fbdc3 commit 939cbca

File tree

5 files changed

+3
-137
lines changed

5 files changed

+3
-137
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ features = ["c"]
129129
- [x] arm/softfloat-alias.list
130130
- [x] arm/subdf3vfp.S
131131
- [x] arm/subsf3vfp.S
132-
- [x] arm/truncdfsf2vfp.S
132+
- [ ] arm/truncdfsf2vfp.S
133133
- [ ] arm/udivmodsi4.S (generic version is done)
134134
- [ ] arm/udivsi3.S (generic version is done)
135135
- [ ] arm/umodsi3.S (generic version is done)
@@ -186,7 +186,7 @@ features = ["c"]
186186
- [x] subdf3.c
187187
- [x] subsf3.c
188188
- [ ] truncdfhf2.c
189-
- [x] truncdfsf2.c
189+
- [ ] truncdfsf2.c
190190
- [ ] truncsfhf2.c
191191
- [x] udivdi3.c
192192
- [x] udivmoddi4.c

build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ mod c {
174174
"subvdi3.c",
175175
"subvsi3.c",
176176
"truncdfhf2.c",
177+
"truncdfsf2.c",
177178
"truncsfhf2.c",
178179
"ucmpdi2.c",
179180
],

src/float/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub mod sub;
1111
pub mod mul;
1212
pub mod div;
1313
pub mod extend;
14-
pub mod truncate;
1514

1615
/// Trait for some basic operations on floats
1716
pub trait Float:

src/float/truncate.rs

-116
This file was deleted.

testcrate/build.rs

-18
Original file line numberDiff line numberDiff line change
@@ -348,24 +348,6 @@ fn main() {
348348
"builtins::float::extend::__extendsfdf2vfp(a)");
349349
}
350350

351-
// float/truncate.rs
352-
gen(|a: MyF64| {
353-
if a.0.is_nan() {
354-
return None;
355-
}
356-
Some(a.0 as f32)
357-
},
358-
"builtins::float::truncate::__truncdfsf2(a)");
359-
if target_arch_arm {
360-
gen(|a: LargeF64| {
361-
if a.0.is_nan() {
362-
return None;
363-
}
364-
Some(a.0 as f32)
365-
},
366-
"builtins::float::truncate::__truncdfsf2vfp(a)");
367-
}
368-
369351
// float/conv.rs
370352
gen(|a: MyF64| i64(a.0).ok(),
371353
"builtins::float::conv::__fixdfdi(a)");

0 commit comments

Comments
 (0)