Lack of CarryOut in C
Posted Apr 2, 2013 18:45 UTC (Tue) by
jreiser (subscriber, #11027)
In reply to:
McIntyre: Scanning for assembly code in Free Software packages by butlerm
Parent article:
McIntyre: Scanning for assembly code in Free Software packages
the inability of C code to take advantage of the carry bit
Amen. However, sometimes ((unsigned)(x+y) < (unsigned)x) plus a comment is good enough (courtesy of MIPS, which has no Carry in hardware.)
That still isn't good enough for decoding a big-endian bitstream, which wants both CarryOut and Zero after ((x<<=1)|CarryIn).
(
Log in to post comments)