Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
f396c08f
Commit
f396c08f
authored
Jun 18, 2014
by
Jean-Marc Valin
Browse files
Adds SIG2WORD16() to fixed_debug.h
parent
3996642c
Changes
1
Hide whitespace changes
Inline
Side-by-side
celt/fixed_debug.h
View file @
f396c08f
...
...
@@ -768,6 +768,16 @@ static OPUS_INLINE int DIV32_(opus_int64 a, opus_int64 b, char *file, int line)
return
res
;
}
static
OPUS_INLINE
opus_val16
SIG2WORD16_generic
(
celt_sig
x
)
{
x
=
PSHR32
(
x
,
SIG_SHIFT
);
x
=
MAX32
(
x
,
-
32768
);
x
=
MIN32
(
x
,
32767
);
return
EXTRACT16
(
x
);
}
#define SIG2WORD16(x) (SIG2WORD16_generic(x))
#undef PRINT_MIPS
#define PRINT_MIPS(file) do {fprintf (file, "total complexity = %llu MIPS\n", celt_mips);} while (0);
...
...
Write
Preview
Supports
Markdown
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