Skip to content

Commit 678158c

Browse files
committed
Removed unused softfloat functions
1 parent 202e092 commit 678158c

13 files changed

+2
-932
lines changed

src/softfloat/doc/eZ80-SoftFloat.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,16 @@ Arithmetic:
1010
* f64_mulAdd (Fused-multiply add)
1111
* f64_sqrt
1212
Conversion:
13-
* f32_to_f64
1413
* f64_to_f32
15-
* f64_to_i32_r_minMag
16-
* f64_to_i64_r_minMag
17-
* f64_to_ui32_r_minMag
18-
* f64_to_ui64_r_minMag
1914
* f64_to_i32
2015
* f64_to_i64
21-
* i32_to_f64
2216
* i64_to_f64
23-
* ui32_to_f64
2417
* ui64_to_f64
2518
* f64_roundToInt
2619

27-
The SoftFloat library is configured to use the `8086-SSE` rules for NaN propagation, but this can customized, and possibly disabled to reduce binary size. A program using all of the above routines compiled to ~30kb with `-Oz -flto` (~34kb with `fmaf`). SoftFloat also supports an `INLINE_LEVEL` macro, setting it to `0-1` gave a binary size of 34449 bytes, and setting it to `2-5` gave a binary size of 34837 bytes. The size difference in `lto.src` comes from `_f64_add`, `_f64_sub`, `_dadd`, and `_dsub`.
20+
The SoftFloat library is configured to use the `8086-SSE` rules for NaN propagation, but this can customized, and possibly disabled to reduce binary size.
2821

29-
Every unused source file from `SoftFloat-3e/source` has been exlucded to speed up compile times.
22+
Every unused source file from `SoftFloat-3e/source` has been excluded to speed up compile times.
3023

3124
The following files are used for implementing `float fmaf(float, float, float)`, but are not needed for `long double`:
3225
* SoftFloat-3e/source/f32_mulAdd.c

src/softfloat/f32_to_f64.c

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

src/softfloat/f64_add.c

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

src/softfloat/f64_mulAdd.c

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

src/softfloat/f64_sub.c

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

0 commit comments

Comments
 (0)