转自: http://blog.csdn.net/shisi/article/details/4600265
代码实现 根据CSDN的汇编板的汇编程序改写
++++++++++++++++++++++++++++++++++++++++
int Function(int x,int y)
{
int Op1=x; int Op2=y; // X*Y
int cfresult=0;
while(Op2!=0)
{
if(1==(0x01&Op2))
{
cfresult+=Op1;
}
Op1<<=1;
Op2>>=1;
}
return cfresult;
}
#define a*b (Function(a,b))
阅读(777) | 评论(0) | 转发(0) |