Commit 6f6eebbc authored by Tomoaki Teshima's avatar Tomoaki Teshima

fix warning

parent fbfd3158
...@@ -4504,7 +4504,7 @@ static short convertFp16SW(float fp32) ...@@ -4504,7 +4504,7 @@ static short convertFp16SW(float fp32)
// special cases to round up // special cases to round up
bitShift = exponent + 24; bitShift = exponent + 24;
unsigned int threshold = ( ( 0x400000 >> bitShift ) | ( ( ( significand & ( 0x800000 >> bitShift ) ) >> ( 126 - a.fmt.exponent ) ) ^ 1 ) ); int threshold = ( ( 0x400000 >> bitShift ) | ( ( ( significand & ( 0x800000 >> bitShift ) ) >> ( 126 - a.fmt.exponent ) ) ^ 1 ) );
if( threshold <= ( significand & ( 0xffffff >> ( exponent + 25 ) ) ) ) if( threshold <= ( significand & ( 0xffffff >> ( exponent + 25 ) ) ) )
{ {
fp16Significand++; fp16Significand++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment