Commit dd429c7e authored by Thomas Jahns's avatar Thomas Jahns 🤸

Fix use of macro.

* In some autoconf versions HAVE_DECL_x is defined to 0 if x is no r-value.
parent 8c28f93d
...@@ -267,7 +267,7 @@ static inline uint32_t direct_get_fs(struct aec_stream *strm) ...@@ -267,7 +267,7 @@ static inline uint32_t direct_get_fs(struct aec_stream *strm)
*/ */
uint32_t fs = 0; uint32_t fs = 0;
#ifdef HAVE_DECL___BUILTIN_CLZLL #if HAVE_DECL___BUILTIN_CLZLL
uint32_t lz; uint32_t lz;
#endif #endif
struct internal_state *state = strm->state; struct internal_state *state = strm->state;
...@@ -280,7 +280,7 @@ static inline uint32_t direct_get_fs(struct aec_stream *strm) ...@@ -280,7 +280,7 @@ static inline uint32_t direct_get_fs(struct aec_stream *strm)
fill_acc(strm); fill_acc(strm);
} }
#ifdef HAVE_DECL___BUILTIN_CLZLL #if HAVE_DECL___BUILTIN_CLZLL
lz = __builtin_clzll(state->acc); lz = __builtin_clzll(state->acc);
fs += lz + state->bitp - 64; fs += lz + state->bitp - 64;
state->bitp = 63 - lz; state->bitp = 63 - lz;
......
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