This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil 3 not compling

#define xtime(x) ((x<<1) ^ (((x>>7) & 1) * 0x1b))

#define Multiply(x,y) (((y & 1) * x) ^ \
((y>>1 & 1) * xtime(x)) ^ \
((y>>2 & 1) * xtime(xtime(x))) ^ \
((y>>3 & 1) * xtime(xtime(xtime(x)))) ^ \
((y>>4 & 1) * xtime(xtime(xtime(xtime(x))))))

void main()
{ unsigned char a=0xde,d; d=Multiply(a,0x0e);

}

This code above is not compiling on Keil 3 but it complied on Keil 4. I will want to know why?

Parents Reply Children
No data