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
Yushin Cho
aom-rav1e
Commits
cf2aaba9
Commit
cf2aaba9
authored
Mar 07, 2016
by
Nathan Egge
Browse files
Return 0 explicitly for OD_ILOG(0).
Change-Id: I9fd4052f0b3f280496882f4475c97b1b5a75934f
parent
49ca22aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp10/common/odintrin.h
View file @
cf2aaba9
...
...
@@ -31,6 +31,6 @@ typedef int16_t dering_in;
documentation (and that of the x86 BSR instruction that implements it), so
we have to special-case it.
We define a special version of the macro to use when x can be zero.*/
# define OD_ILOG(x) (OD_ILOG_NZ(x)
& -!!(x)
)
# define OD_ILOG(x) (
(x) ?
OD_ILOG_NZ(x)
: 0
)
#endif
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