Skip to content

Commit 18a8ddc

Browse files
committed
sw: Definitively remove custom math library
1 parent e9417f5 commit 18a8ddc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+5
-2688
lines changed

Bender.yml

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -29,56 +29,6 @@ dependencies:
2929
cluster_icache: { git: https://github.com/pulp-platform/cluster_icache.git, version: 0.1.0 }
3030
idma: { git: https://github.com/pulp-platform/iDMA, version: 0.6.0 }
3131

32-
vendor_package:
33-
- name: musl
34-
target_dir: sw/math
35-
upstream: { git: https://github.com/kraj/musl.git, rev: 7a43f6fea9081bdd53d8a11cef9e9fab0348c53d } # v1.2.4
36-
patch_dir: sw/deps/patches/musl
37-
include_from_upstream:
38-
- "COPYRIGHT"
39-
- "Makefile"
40-
- ".gitignore"
41-
- "README"
42-
- "src/math/ceil.c"
43-
- "src/math/ceilf.c"
44-
- "src/math/ceill.c"
45-
- "src/math/expm1.c"
46-
- "src/math/expf.c"
47-
- "src/math/exp2f_data.c"
48-
- "src/math/exp2f_data.h"
49-
- "src/math/log2.c"
50-
- "src/math/log2_data.c"
51-
- "src/math/log2_data.h"
52-
- "src/math/log2f.c"
53-
- "src/math/log2f_data.c"
54-
- "src/math/log2f_data.h"
55-
- "src/math/__math_divzero.c"
56-
- "src/math/__math_invalid.c"
57-
- "src/math/__math_invalidf.c"
58-
- "src/math/__math_invalidl.c"
59-
- "src/math/__math_oflow.c"
60-
- "src/math/__math_oflowf.c"
61-
- "src/math/__math_uflow.c"
62-
- "src/math/__math_uflowf.c"
63-
- "src/math/__math_xflow.c"
64-
- "src/math/__math_xflowf.c"
65-
- "src/math/sqrt.c"
66-
- "src/math/sqrtf.c"
67-
- "src/math/sqrt_data.c"
68-
- "src/math/sqrt_data.h"
69-
- "src/math/tanh.c"
70-
- "src/internal/libm.h"
71-
- "src/include/features.h"
72-
- "include/endian.h"
73-
- "include/math.h"
74-
- "include/features.h"
75-
- "include/float.h"
76-
- "include/alltypes.h.in"
77-
- "arch/riscv64/bits/alltypes.h.in"
78-
- "arch/riscv64/bits/float.h"
79-
- "tools/mkalltypes.sed"
80-
- "arch/generic/fp_arch.h"
81-
8232
export_include_dirs:
8333
- hw/reqrsp_interface/include
8434
- hw/mem_interface/include

sw/dnn/batchnorm/scripts/datagen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def emit_header(**kwargs):
6565
ifmap_uid = 'ifmap'
6666
ofmap_uid = 'ofmap'
6767
beta_uid = 'beta'
68-
gamma_uid = 'gamma'
68+
# Underscore is used to disambiguate between this and the gamma function from "math.h"
69+
gamma_uid = 'gamma_'
6970

7071
layer_cfg = {
7172
'CI': ci,

sw/math/.gitignore

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

sw/math/COPYRIGHT

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

sw/math/Makefile

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

sw/math/README

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

sw/math/arch/generic/fp_arch.h

Whitespace-only changes.

sw/math/arch/riscv64/bits/alltypes.h.in

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

sw/math/arch/riscv64/bits/float.h

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

0 commit comments

Comments
 (0)