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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Thomas Daede
Opus
Commits
affb551e
Unverified
Commit
affb551e
authored
2 years ago
by
Timothy B. Terriberry
Browse files
Options
Downloads
Patches
Plain Diff
Make silk/x86 header indentation consistent.
The indentation for nested #ifs was all over the place.
parent
1504d2d4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
silk/x86/SigProc_FIX_sse.h
+20
-20
20 additions, 20 deletions
silk/x86/SigProc_FIX_sse.h
silk/x86/main_sse.h
+31
-31
31 additions, 31 deletions
silk/x86/main_sse.h
with
51 additions
and
51 deletions
silk/x86/SigProc_FIX_sse.h
+
20
−
20
View file @
affb551e
...
...
@@ -26,13 +26,13 @@
*/
#ifndef SIGPROC_FIX_SSE_H
#define SIGPROC_FIX_SSE_H
#
define SIGPROC_FIX_SSE_H
#ifdef HAVE_CONFIG_H
#include
"config.h"
#endif
#
ifdef HAVE_CONFIG_H
#
include "config.h"
#
endif
#if defined(OPUS_X86_MAY_HAVE_SSE4_1)
#
if defined(OPUS_X86_MAY_HAVE_SSE4_1)
void
silk_burg_modified_sse4_1
(
opus_int32
*
res_nrg
,
/* O Residual energy */
opus_int
*
res_nrg_Q
,
/* O Residual energy Q value */
...
...
@@ -45,11 +45,11 @@ void silk_burg_modified_sse4_1(
int
arch
/* I Run-time architecture */
);
#if defined(OPUS_X86_PRESUME_SSE4_1)
#define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \
((void)(arch), silk_burg_modified_sse4_1(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch))
#
if defined(OPUS_X86_PRESUME_SSE4_1)
#
define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \
((void)(arch), silk_burg_modified_sse4_1(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch))
#else
#
else
extern
void
(
*
const
SILK_BURG_MODIFIED_IMPL
[
OPUS_ARCHMASK
+
1
])(
opus_int32
*
res_nrg
,
/* O Residual energy */
...
...
@@ -62,10 +62,10 @@ extern void (*const SILK_BURG_MODIFIED_IMPL[OPUS_ARCHMASK + 1])(
const
opus_int
D
,
/* I Order */
int
arch
/* I Run-time architecture */
);
# define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \
((*SILK_BURG_MODIFIED_IMPL[(arch) & OPUS_ARCHMASK])(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch))
#
define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \
((*SILK_BURG_MODIFIED_IMPL[(arch) & OPUS_ARCHMASK])(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch))
#endif
#
endif
opus_int64
silk_inner_prod16_sse4_1
(
const
opus_int16
*
inVec1
,
...
...
@@ -74,21 +74,21 @@ opus_int64 silk_inner_prod16_sse4_1(
);
#if defined(OPUS_X86_PRESUME_SSE4_1)
#
if defined(OPUS_X86_PRESUME_SSE4_1)
#define silk_inner_prod16(inVec1, inVec2, len, arch) \
((void)(arch),silk_inner_prod16_sse4_1(inVec1, inVec2, len))
#
define silk_inner_prod16(inVec1, inVec2, len, arch) \
((void)(arch),silk_inner_prod16_sse4_1(inVec1, inVec2, len))
#else
#
else
extern
opus_int64
(
*
const
SILK_INNER_PROD16_IMPL
[
OPUS_ARCHMASK
+
1
])(
const
opus_int16
*
inVec1
,
const
opus_int16
*
inVec2
,
const
opus_int
len
);
# define silk_inner_prod16(inVec1, inVec2, len, arch) \
((*SILK_INNER_PROD16_IMPL[(arch) & OPUS_ARCHMASK])(inVec1, inVec2, len))
#
define silk_inner_prod16(inVec1, inVec2, len, arch) \
((*SILK_INNER_PROD16_IMPL[(arch) & OPUS_ARCHMASK])(inVec1, inVec2, len))
#endif
#endif
#
endif
#
endif
#endif
This diff is collapsed.
Click to expand it.
silk/x86/main_sse.h
+
31
−
31
View file @
affb551e
...
...
@@ -26,11 +26,11 @@
*/
#ifndef MAIN_SSE_H
#define MAIN_SSE_H
#
define MAIN_SSE_H
#ifdef HAVE_CONFIG_H
#include
"config.h"
#endif
#
ifdef HAVE_CONFIG_H
#
include "config.h"
#
endif
# if defined(OPUS_X86_MAY_HAVE_SSE4_1)
...
...
@@ -51,14 +51,14 @@ void silk_VQ_WMat_EC_sse4_1(
const
opus_int
L
/* I number of vectors in codebook */
);
#if defined OPUS_X86_PRESUME_SSE4_1
#
if defined OPUS_X86_PRESUME_SSE4_1
#define silk_VQ_WMat_EC(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, \
subfr_len, max_gain_Q7, L, arch) \
#
define silk_VQ_WMat_EC(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, \
subfr_len, max_gain_Q7, L, arch) \
((void)(arch),silk_VQ_WMat_EC_sse4_1(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, \
subfr_len, max_gain_Q7, L))
#else
#
else
extern
void
(
*
const
SILK_VQ_WMAT_EC_IMPL
[
OPUS_ARCHMASK
+
1
])(
opus_int8
*
ind
,
/* O index of best codebook vector */
...
...
@@ -75,12 +75,12 @@ extern void (*const SILK_VQ_WMAT_EC_IMPL[OPUS_ARCHMASK + 1])(
const
opus_int
L
/* I number of vectors in codebook */
);
# define silk_VQ_WMat_EC(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, \
subfr_len, max_gain_Q7, L, arch) \
#
define silk_VQ_WMat_EC(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, \
subfr_len, max_gain_Q7, L, arch) \
((*SILK_VQ_WMAT_EC_IMPL[(arch) & OPUS_ARCHMASK])(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, \
subfr_len, max_gain_Q7, L))
#endif
#
endif
# define OVERRIDE_silk_NSQ
...
...
@@ -102,14 +102,14 @@ void silk_NSQ_sse4_1(
const
opus_int
LTP_scale_Q14
/* I LTP state scaling */
);
#if defined OPUS_X86_PRESUME_SSE4_1
#
if defined OPUS_X86_PRESUME_SSE4_1
#define silk_NSQ(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
#
define silk_NSQ(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
((void)(arch),silk_NSQ_sse4_1(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
#else
#
else
extern
void
(
*
const
SILK_NSQ_IMPL
[
OPUS_ARCHMASK
+
1
])(
const
silk_encoder_state
*
psEncC
,
/* I Encoder State */
...
...
@@ -129,12 +129,12 @@ extern void (*const SILK_NSQ_IMPL[OPUS_ARCHMASK + 1])(
const
opus_int
LTP_scale_Q14
/* I LTP state scaling */
);
# define silk_NSQ(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
#
define silk_NSQ(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
((*SILK_NSQ_IMPL[(arch) & OPUS_ARCHMASK])(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
#endif
#
endif
# define OVERRIDE_silk_NSQ_del_dec
...
...
@@ -156,14 +156,14 @@ void silk_NSQ_del_dec_sse4_1(
const
opus_int
LTP_scale_Q14
/* I LTP state scaling */
);
#if defined OPUS_X86_PRESUME_SSE4_1
#
if defined OPUS_X86_PRESUME_SSE4_1
#define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
#
define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
((void)(arch),silk_NSQ_del_dec_sse4_1(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
#else
#
else
extern
void
(
*
const
SILK_NSQ_DEL_DEC_IMPL
[
OPUS_ARCHMASK
+
1
])(
const
silk_encoder_state
*
psEncC
,
/* I Encoder State */
...
...
@@ -183,12 +183,12 @@ extern void (*const SILK_NSQ_DEL_DEC_IMPL[OPUS_ARCHMASK + 1])(
const
opus_int
LTP_scale_Q14
/* I LTP state scaling */
);
# define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
#
define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \
((*SILK_NSQ_DEL_DEC_IMPL[(arch) & OPUS_ARCHMASK])(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
#endif
#
endif
void
silk_noise_shape_quantizer
(
silk_nsq_state
*
NSQ
,
/* I/O NSQ state */
...
...
@@ -228,19 +228,19 @@ opus_int silk_VAD_GetSA_Q8_sse4_1(
const
opus_int16
pIn
[]
);
#if defined(OPUS_X86_PRESUME_SSE4_1)
#define silk_VAD_GetSA_Q8(psEnC, pIn, arch) ((void)(arch),silk_VAD_GetSA_Q8_sse4_1(psEnC, pIn))
#
if defined(OPUS_X86_PRESUME_SSE4_1)
#
define silk_VAD_GetSA_Q8(psEnC, pIn, arch) ((void)(arch),silk_VAD_GetSA_Q8_sse4_1(psEnC, pIn))
#else
#
else
# define silk_VAD_GetSA_Q8(psEnC, pIn, arch) \
((*SILK_VAD_GETSA_Q8_IMPL[(arch) & OPUS_ARCHMASK])(psEnC, pIn))
#
define silk_VAD_GetSA_Q8(psEnC, pIn, arch) \
((*SILK_VAD_GETSA_Q8_IMPL[(arch) & OPUS_ARCHMASK])(psEnC, pIn))
extern
opus_int
(
*
const
SILK_VAD_GETSA_Q8_IMPL
[
OPUS_ARCHMASK
+
1
])(
silk_encoder_state
*
psEnC
,
const
opus_int16
pIn
[]);
#endif
#
endif
# 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