On 12.09.2008 14:59, Andriy Gapon wrote: > on 12/09/2008 15:30 Mats Erik Andersson said the following: >> data = 0; >> data += ( fn(0x10) >> 1 ) && 0x007f; >> >> where fn(0x10) == 0x1010. However, the actual outcome of the previous >> calculation is the value 0x01, instead of the expected 0x08. > > did you by a chance confused '&' and '&&" as in your examples?
I believe Andriy is right. The expected outcome of the calculation above is indeed 1. Regards, Carl-Daniel -- http://www.hailfinger.org/ -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

