outmacho.c: Don't assume __builtin_ctzl exists for gcc < 4

__builtin_ctzl exists for all architectures on gcc 4, but not for all
versions of gcc 3 and lower.  For simplicity, make the cutoff gcc 4.
This commit is contained in:
H. Peter Anvin 2007-04-12 16:12:09 +00:00
parent b7a89544d0
commit 58421f9697

View File

@ -205,7 +205,7 @@ static int exact_log2 (uint32_t align) {
if (align != (align & -align)) {
return -1;
} else {
#ifdef __GNUC__
#if __GNUC__ >= 4
return (align ? __builtin_ctzl (align) : 0);
#else
uint32_t result = 0;