1999-09-12 Donn Terry <donn@interix.com>
* libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most significant bit is set.
This commit is contained in:
parent
61feeec2ee
commit
86b21447e7
@ -1,3 +1,8 @@
|
||||
1999-09-12 Donn Terry <donn@interix.com>
|
||||
|
||||
* libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
|
||||
significant bit is set.
|
||||
|
||||
1999-09-11 Ian Lance Taylor <ian@zembu.com>
|
||||
|
||||
* coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
|
||||
|
@ -1260,7 +1260,7 @@ bfd_log2 (x)
|
||||
{
|
||||
unsigned int result = 0;
|
||||
|
||||
while ((((bfd_vma) 1) << result) < x)
|
||||
while ((x = (x >> 1)) != 0)
|
||||
++result;
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user