mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Fix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static'
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7103 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
14d483eca0
commit
3f4cb3d37f
13 changed files with 35 additions and 31 deletions
|
@ -590,12 +590,12 @@ static bits32 estimateSqrt32( int16 aExp, bits32 a )
|
|||
|
||||
index = ( a>>27 ) & 15;
|
||||
if ( aExp & 1 ) {
|
||||
z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ index ];
|
||||
z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ (int)index ];
|
||||
z = ( ( a / z )<<14 ) + ( z<<15 );
|
||||
a >>= 1;
|
||||
}
|
||||
else {
|
||||
z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ index ];
|
||||
z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ (int)index ];
|
||||
z = a / z + z;
|
||||
z = ( 0x20000 <= z ) ? 0xFFFF8000 : ( z<<15 );
|
||||
if ( z <= a ) return (bits32) ( ( (sbits32) a )>>1 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue