Article ID: 194608
Article Last Modified on 9/23/2005
( ( ConstantValue << Variable ) + OptimizableValue );
#include <iostream>
#define SIZE (unsigned int)512
static unsigned int new_depth = 1;
// #pragma optimize("g",off) // Uncomment for Workaround One.
int main()
{
unsigned int result = ( ( 8 << new_depth ) + SIZE - 1 ) / SIZE;
std::cout << "Result = " << result ;
return 0;
}
// #pragma optimize("g",on) // Uncomment for Workaround One.
#include <iostream>
#define SIZE (unsigned int)512
static unsigned int new_depth = 1;
unsigned int result1;
int main()
{
result1 = ( 8 << new_depth );
unsigned int result2 = ( ( result1 + SIZE - 1 ) / SIZE );
std::cout << "Result = " << result2 ;
return 0;
}
Additional query words: compiler
Keywords: kbbug kbfix kbvc600fix kbqfe kbcodegen kbcompiler kbhotfixserver KB194608