Commit cf2aaba9 authored by Nathan Egge's avatar Nathan Egge

Return 0 explicitly for OD_ILOG(0).

Change-Id: I9fd4052f0b3f280496882f4475c97b1b5a75934f
parent 49ca22aa
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment