diff options
-rw-r--r-- | plugins/alac/alac.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/alac/alac.c b/plugins/alac/alac.c index a65270fa..1779eb67 100644 --- a/plugins/alac/alac.c +++ b/plugins/alac/alac.c @@ -293,6 +293,11 @@ static int count_leading_zeros(int input) } return output; } +#elif defined(__GNUC__) +static int count_leading_zeros(int input) +{ + return __builtin_clz(input); +} #else #warning using generic count leading zeroes. You may wish to write one for your CPU / compiler static int count_leading_zeros(int input) |