Rename a local variable to avoid a shadow decl warning.

This commit is contained in:
thorpej 2002-05-05 20:00:51 +00:00
parent 92896ac2a1
commit f7d7544c87

View File

@ -1,4 +1,4 @@
/* $NetBSD: softfloat-macros,v 1.3 2002/03/10 14:15:08 bjh21 Exp $ */
/* $NetBSD: softfloat-macros,v 1.4 2002/05/05 20:00:51 thorpej Exp $ */
/*
===============================================================================
@ -603,17 +603,17 @@ static bits32 estimateSqrt32( int16 aExp, bits32 a )
0x0A2D, 0x08AF, 0x075A, 0x0629, 0x051A, 0x0429, 0x0356, 0x029E,
0x0200, 0x0179, 0x0109, 0x00AF, 0x0068, 0x0034, 0x0012, 0x0002
};
int8 index;
int8 idx;
bits32 z;
index = ( a>>27 ) & 15;
idx = ( a>>27 ) & 15;
if ( aExp & 1 ) {
z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ index ];
z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ idx ];
z = ( ( a / z )<<14 ) + ( z<<15 );
a >>= 1;
}
else {
z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ index ];
z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ idx ];
z = a / z + z;
z = ( 0x20000 <= z ) ? 0xFFFF8000 : ( z<<15 );
if ( z <= a ) return (bits32) ( ( (sbits32) a )>>1 );