Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
e69ca29d
Unverified
Commit
e69ca29d
authored
1 month ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Fix
6a089d21
: res<->int24 conversion for res 16
parent
02dcb703
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
celt/arch.h
+2
-2
2 additions, 2 deletions
celt/arch.h
with
2 additions
and
2 deletions
celt/arch.h
+
2
−
2
View file @
e69ca29d
...
...
@@ -157,10 +157,10 @@ typedef opus_val16 opus_res;
#define RES_SHIFT 0
#define SIG2RES(a) SIG2WORD16(a)
#define RES2INT16(a) (a)
#define RES2INT24(a) SHL32(EXTEND32(a),
RES_SHIFT
)
#define RES2INT24(a) SHL32(EXTEND32(a),
8
)
#define RES2FLOAT(a) ((1.f/32768.f)*(a))
#define INT16TORES(a) (a)
#define INT24TORES(a) SAT16(PSHR32(a,
RES_SHIFT
))
#define INT24TORES(a) SAT16(PSHR32(a,
8
))
#define ADD_RES(a, b) SAT16(ADD32((a), (b)));
#define FLOAT2RES(a) FLOAT2INT16(a)
#define RES2SIG(a) SHL32(EXTEND32(a), SIG_SHIFT)
...
...
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