Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SpeexDSP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
SpeexDSP
Commits
dc6394e9
Commit
dc6394e9
authored
Aug 29, 2020
by
Karl Tomlinson
Committed by
Ralph Giles
Oct 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed-point: Remove unused MULT16_32_Q1[1-4] macros and inlines
parent
2f852101
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
81 deletions
+0
-81
libspeexdsp/arch.h
libspeexdsp/arch.h
+0
-4
libspeexdsp/fixed_arm4.h
libspeexdsp/fixed_arm4.h
+0
-13
libspeexdsp/fixed_arm5e.h
libspeexdsp/fixed_arm5e.h
+0
-18
libspeexdsp/fixed_bfin.h
libspeexdsp/fixed_bfin.h
+0
-35
libspeexdsp/fixed_debug.h
libspeexdsp/fixed_debug.h
+0
-5
libspeexdsp/fixed_generic.h
libspeexdsp/fixed_generic.h
+0
-6
No files found.
libspeexdsp/arch.h
View file @
dc6394e9
...
...
@@ -180,13 +180,9 @@ typedef float spx_word32_t;
#define MULT16_16(a,b) ((spx_word32_t)(a)*(spx_word32_t)(b))
#define MAC16_16(c,a,b) ((c)+(spx_word32_t)(a)*(spx_word32_t)(b))
#define MULT16_32_Q11(a,b) ((a)*(b))
#define MULT16_32_Q13(a,b) ((a)*(b))
#define MULT16_32_Q14(a,b) ((a)*(b))
#define MULT16_32_Q15(a,b) ((a)*(b))
#define MULT16_32_P15(a,b) ((a)*(b))
#define MAC16_32_Q11(c,a,b) ((c)+(a)*(b))
#define MAC16_32_Q15(c,a,b) ((c)+(a)*(b))
#define MAC16_16_Q11(c,a,b) ((c)+(a)*(b))
...
...
libspeexdsp/fixed_arm4.h
View file @
dc6394e9
...
...
@@ -35,19 +35,6 @@
#ifndef FIXED_ARM4_H
#define FIXED_ARM4_H
#undef MULT16_32_Q14
static
inline
spx_word32_t
MULT16_32_Q14
(
spx_word16_t
x
,
spx_word32_t
y
)
{
int
res
;
int
dummy
;
asm
(
"smull %0,%1,%2,%3
\n\t
"
"mov %0, %0, lsr #14
\n\t
"
"add %0, %0, %1, lsl #18
\n\t
"
:
"=&r"
(
res
),
"=&r"
(
dummy
)
:
"r"
(
y
),
"r"
((
int
)
x
));
return
(
res
);
}
#undef MULT16_32_Q15
static
inline
spx_word32_t
MULT16_32_Q15
(
spx_word16_t
x
,
spx_word32_t
y
)
{
int
res
;
...
...
libspeexdsp/fixed_arm5e.h
View file @
dc6394e9
...
...
@@ -71,24 +71,6 @@ static inline spx_word32_t MAC16_32_Q15(spx_word32_t a, spx_word16_t x, spx_word
return
(
res
);
}
#undef MULT16_32_Q11
static
inline
spx_word32_t
MULT16_32_Q11
(
spx_word16_t
x
,
spx_word32_t
y
)
{
int
res
;
asm
(
"smulwb %0,%1,%2;
\n
"
:
"=&r"
(
res
)
:
"%r"
(
y
<<
5
),
"r"
(
x
));
return
(
res
);
}
#undef MAC16_32_Q11
static
inline
spx_word32_t
MAC16_32_Q11
(
spx_word32_t
a
,
spx_word16_t
x
,
spx_word32_t
y
)
{
int
res
;
asm
(
"smlawb %0,%1,%2,%3;
\n
"
:
"=&r"
(
res
)
:
"%r"
(
y
<<
5
),
"r"
(
x
),
"r"
(
a
));
return
(
res
);
}
#undef DIV32_16
static
inline
short
DIV32_16
(
int
a
,
int
b
)
{
...
...
libspeexdsp/fixed_bfin.h
View file @
dc6394e9
...
...
@@ -138,39 +138,4 @@ static inline spx_word32_t MAC16_32_Q15(spx_word32_t c, spx_word16_t a, spx_word
return
res
;
}
#undef MULT16_32_Q14
static
inline
spx_word32_t
MULT16_32_Q14
(
spx_word16_t
a
,
spx_word32_t
b
)
{
spx_word32_t
res
;
__asm__
(
"%2 <<= 1;
\n\t
"
"A1 = %1.L*%2.L (M);
\n\t
"
"A1 = A1 >>> 15;
\n\t
"
"%0 = (A1 += %1.L*%2.H);
\n\t
"
:
"=W"
(
res
),
"=d"
(
a
),
"=d"
(
b
)
:
"1"
(
a
),
"2"
(
b
)
:
"A1"
,
"ASTAT"
);
return
res
;
}
#undef MAC16_32_Q14
static
inline
spx_word32_t
MAC16_32_Q14
(
spx_word32_t
c
,
spx_word16_t
a
,
spx_word32_t
b
)
{
spx_word32_t
res
;
__asm__
(
"%1 <<= 1;
\n\t
"
"A1 = %2.L*%1.L (M);
\n\t
"
"A1 = A1 >>> 15;
\n\t
"
"%0 = (A1 += %2.L*%1.H);
\n\t
"
"%0 = %0 + %4;
\n\t
"
:
"=&W"
(
res
),
"=&d"
(
b
)
:
"d"
(
a
),
"1"
(
b
),
"d"
(
c
)
:
"A1"
,
"ASTAT"
);
return
res
;
}
#endif
libspeexdsp/fixed_debug.h
View file @
dc6394e9
...
...
@@ -305,11 +305,6 @@ static inline int MULT16_32_PX(int a, long long b, int Q)
}
#define MULT16_32_Q11(a,b) MULT16_32_QX(a,b,11)
#define MAC16_32_Q11(c,a,b) ADD32((c),MULT16_32_Q11((a),(b)))
#define MULT16_32_Q12(a,b) MULT16_32_QX(a,b,12)
#define MULT16_32_Q13(a,b) MULT16_32_QX(a,b,13)
#define MULT16_32_Q14(a,b) MULT16_32_QX(a,b,14)
#define MULT16_32_Q15(a,b) MULT16_32_QX(a,b,15)
#define MULT16_32_P15(a,b) MULT16_32_PX(a,b,15)
#define MAC16_32_Q15(c,a,b) ADD32((c),MULT16_32_Q15((a),(b)))
...
...
libspeexdsp/fixed_generic.h
View file @
dc6394e9
...
...
@@ -75,12 +75,6 @@
#define MULT16_16(a,b) (((spx_word32_t)(spx_word16_t)(a))*((spx_word32_t)(spx_word16_t)(b)))
#define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b))))
#define MULT16_32_Q12(a,b) ADD32(MULT16_16((a),SHR((b),12)), SHR(MULT16_16((a),((b)&0x00000fff)),12))
#define MULT16_32_Q13(a,b) ADD32(MULT16_16((a),SHR((b),13)), SHR(MULT16_16((a),((b)&0x00001fff)),13))
#define MULT16_32_Q14(a,b) ADD32(MULT16_16((a),SHR((b),14)), SHR(MULT16_16((a),((b)&0x00003fff)),14))
#define MULT16_32_Q11(a,b) ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16((a),((b)&0x000007ff)),11))
#define MAC16_32_Q11(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16((a),((b)&0x000007ff)),11)))
#define MULT16_32_P15(a,b) ADD32(MULT16_16((a),SHR((b),15)), PSHR(MULT16_16((a),((b)&0x00007fff)),15))
#define MULT16_32_Q15(a,b) ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00007fff)),15))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment