mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
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:
parent
b7a89544d0
commit
58421f9697
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user