Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
2040606f
Commit
2040606f
authored
11 years ago
by
Timothy B. Terriberry
Browse files
Options
Downloads
Patches
Plain Diff
Minor ARMv5E cleanups.
Missed the armv5e extension on a couple of functions.
parent
006273c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
celt/arm/fixed_armv5e.h
+5
-4
5 additions, 4 deletions
celt/arm/fixed_armv5e.h
celt/fixed_generic.h
+3
-1
3 additions, 1 deletion
celt/fixed_generic.h
with
8 additions
and
5 deletions
celt/arm/fixed_armv5e.h
+
5
−
4
View file @
2040606f
...
...
@@ -84,7 +84,8 @@ static inline opus_val32 MAC16_32_Q15_armv5e(opus_val32 c, opus_val16 a,
/** 16x16 multiply-add where the result fits in 32 bits */
#undef MAC16_16
static
inline
opus_val32
MAC16_16
(
opus_val32
c
,
opus_val16
a
,
opus_val16
b
)
static
inline
opus_val32
MAC16_16_armv5e
(
opus_val32
c
,
opus_val16
a
,
opus_val16
b
)
{
int
res
;
__asm__
(
...
...
@@ -95,11 +96,11 @@ static inline opus_val32 MAC16_16(opus_val32 c, opus_val16 a, opus_val16 b)
);
return
res
;
}
#define MAC16_16(c, a, b) (MAC16_16(c, a, b))
#define MAC16_16(c, a, b) (MAC16_16
_armv5e
(c, a, b))
/** 16x16 multiplication where the result fits in 32 bits */
#undef MULT16_16
static
inline
opus_val32
MULT16_16
(
opus_val16
a
,
opus_val16
b
)
static
inline
opus_val32
MULT16_16
_armv5e
(
opus_val16
a
,
opus_val16
b
)
{
int
res
;
__asm__
(
...
...
@@ -110,6 +111,6 @@ static inline opus_val32 MULT16_16(opus_val16 a, opus_val16 b)
);
return
res
;
}
#define MULT16_16(a, b) (MULT16_16(a, b))
#define MULT16_16(a, b) (MULT16_16
_armv5e
(a, b))
#endif
This diff is collapsed.
Click to expand it.
celt/fixed_generic.h
+
3
−
1
View file @
2040606f
...
...
@@ -108,7 +108,9 @@
/** 16x16 multiply-add where the result fits in 32 bits */
#define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b))))
/** 16x32 multiply-add, followed by a 15-bit shift right. Results fits in 32 bits */
/** 16x32 multiply, followed by a 15-bit shift right and 32-bit add.
b must fit in 31 bits.
Result fits in 32 bits. */
#define MAC16_32_Q15(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00007fff)),15)))
#define MULT16_16_Q11_32(a,b) (SHR(MULT16_16((a),(b)),11))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment