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
71ae6d47
Commit
71ae6d47
authored
14 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Some C90-ication
parent
3a1006ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libcelt/celt.c
+1
-2
1 addition, 2 deletions
libcelt/celt.c
libcelt/dump_modes.c
+0
-1
0 additions, 1 deletion
libcelt/dump_modes.c
libcelt/ecintrin.h
+0
-25
0 additions, 25 deletions
libcelt/ecintrin.h
with
1 addition
and
28 deletions
libcelt/celt.c
+
1
−
2
View file @
71ae6d47
...
...
@@ -634,7 +634,7 @@ static int tf_analysis(celt_word16 *bandLogE, celt_word16 *oldBandE, int len, in
else
tf_res
[
i
]
=
path0
[
i
+
1
];
}
RESTORE_STACK
RESTORE_STACK
;
return
tf_select
;
}
...
...
@@ -1466,7 +1466,6 @@ static void celt_decode_lost(CELTDecoder * restrict st, celt_word16 * restrict p
int
overlap
=
st
->
mode
->
overlap
;
celt_word16
fade
=
Q15ONE
;
int
i
,
len
;
VARDECL
(
celt_sig
,
freq
);
const
int
C
=
CHANNELS
(
st
->
channels
);
int
offset
;
SAVE_STACK
;
...
...
This diff is collapsed.
Click to expand it.
libcelt/dump_modes.c
+
0
−
1
View file @
71ae6d47
...
...
@@ -156,7 +156,6 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
fprintf
(
file
,
"%d,
\t
/* nbAllocVectors */
\n
"
,
mode
->
nbAllocVectors
);
fprintf
(
file
,
"allocVectors%d_%d,
\t
/* allocVectors */
\n
"
,
mode
->
Fs
,
mdctSize
);
fprintf
(
file
,
"NULL,
\t
/* bits */
\n
"
);
//fprintf(file, "allocCacheTop%d_%d,\t/* _bits */\n", mode->Fs, mode->mdctSize);
fprintf
(
file
,
"{ "
);
for
(
k
=
0
;(
1
<<
k
>>
1
)
<=
mode
->
nbShortMdcts
;
k
++
)
{
...
...
This diff is collapsed.
Click to expand it.
libcelt/ecintrin.h
+
0
−
25
View file @
71ae6d47
...
...
@@ -108,29 +108,4 @@
# define EC_ILOG(_x) (ec_ilog(_x))
#endif
#ifdef __GNUC_PREREQ
#if __GNUC_PREREQ(3,4)
# if INT_MAX>=9223372036854775807
# define EC_CLZ64_0 sizeof(unsigned)*CHAR_BIT
# define EC_CLZ64(_x) (__builtin_clz(_x))
# elif LONG_MAX>=9223372036854775807L
# define EC_CLZ64_0 sizeof(unsigned long)*CHAR_BIT
# define EC_CLZ64(_x) (__builtin_clzl(_x))
# elif LLONG_MAX>=9223372036854775807LL
# define EC_CLZ64_0 sizeof(unsigned long long)*CHAR_BIT
# define EC_CLZ64(_x) (__builtin_clzll(_x))
# endif
#endif
#endif
#if defined(EC_CLZ64)
/*Note that __builtin_clz is not defined when _x==0, according to the gcc
documentation (and that of the BSR instruction that implements it on x86).
The majority of the time we can never pass it zero.
When we need to, it can be special cased.*/
# define EC_ILOG64(_x) (EC_CLZ64_0-EC_CLZ64(_x))
#else
# define EC_ILOG64(_x) (ec_ilog64(_x))
#endif
#endif
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