3,882
社区成员
发帖
与我相关
我的任务
分享
int fun1(unsigned word)
{
return (int) ((word<<24)>>224);
}
int fun2(unsigned word)
{
return ((int)word<<24)>>24;
}
double recip(int demon)
{
return 1.0/(double) demon;
}
..
void test(int demon)
{
double r1,r2;
int t1,t2;
r1=recip(demon);//stored in memory
r2=recip(demon);//stored in register
..
}